@uwrl/qc-utils 0.0.17 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/README.md +56 -0
  2. package/dist/index.js +2149 -893
  3. package/dist/index.umd.cjs +15 -5
  4. package/package.json +61 -56
  5. package/dist/index.d.ts +0 -4
  6. package/dist/models/dataSource.d.ts +0 -173
  7. package/dist/models/index.d.ts +0 -2
  8. package/dist/models/payload.d.ts +0 -24
  9. package/dist/models/settings.d.ts +0 -65
  10. package/dist/models/timestamp.d.ts +0 -150
  11. package/dist/services/__tests__/createPatchObject.spec.d.ts +0 -1
  12. package/dist/services/__tests__/requestInterceptor.spec.d.ts +0 -1
  13. package/dist/services/__tests__/responseInterceptor.spec.d.ts +0 -1
  14. package/dist/services/api.d.ts +0 -147
  15. package/dist/services/apiMethods.d.ts +0 -8
  16. package/dist/services/createPatchObject.d.ts +0 -17
  17. package/dist/services/getCSRFToken.d.ts +0 -1
  18. package/dist/services/index.d.ts +0 -6
  19. package/dist/services/requestInterceptor.d.ts +0 -12
  20. package/dist/services/responseInterceptor.d.ts +0 -2
  21. package/dist/types/index.d.ts +0 -350
  22. package/dist/utils/__tests__/ellapsed-time.spec.d.ts +0 -1
  23. package/dist/utils/__tests__/format.spec.d.ts +0 -1
  24. package/dist/utils/__tests__/notifications.spec.d.ts +0 -1
  25. package/dist/utils/__tests__/observations.spec.d.ts +0 -1
  26. package/dist/utils/ellapsed-time.d.ts +0 -4
  27. package/dist/utils/format.d.ts +0 -5
  28. package/dist/utils/index.d.ts +0 -5
  29. package/dist/utils/notifications.d.ts +0 -46
  30. package/dist/utils/observations.d.ts +0 -5
  31. package/dist/utils/plotting/__tests__/delete-data.worker.spec.d.ts +0 -1
  32. package/dist/utils/plotting/__tests__/mock.d.ts +0 -4
  33. package/dist/utils/plotting/__tests__/observation-record.spec.d.ts +0 -1
  34. package/dist/utils/plotting/add-data.worker.d.ts +0 -0
  35. package/dist/utils/plotting/delete-data.worker.d.ts +0 -0
  36. package/dist/utils/plotting/drift-correction.worker.d.ts +0 -0
  37. package/dist/utils/plotting/fill-gaps.worker.d.ts +0 -0
  38. package/dist/utils/plotting/interpolate.worker.d.ts +0 -0
  39. package/dist/utils/plotting/observation-record.d.ts +0 -155
  40. package/dist/utils/plotting/shift-datetimes.worker.d.ts +0 -0
@@ -1,24 +0,0 @@
1
- export interface ExpressionDataTransformation {
2
- type: 'expression';
3
- expression: string;
4
- }
5
- export interface LookupTableDataTransformation {
6
- lookupTableId: string;
7
- type: 'lookup';
8
- }
9
- export type DataTransformation = ExpressionDataTransformation | LookupTableDataTransformation;
10
- export interface MappingPath {
11
- targetIdentifier: string | number;
12
- dataTransformations: DataTransformation[];
13
- }
14
- export interface Mapping {
15
- sourceIdentifier: string | number;
16
- paths: MappingPath[];
17
- }
18
- export declare class Payload {
19
- name: string;
20
- mappings: Mapping[];
21
- extractorVariables: Record<string, string>;
22
- constructor(init?: Partial<Payload>);
23
- }
24
- export declare function addMapping(payload: Payload): void;
@@ -1,65 +0,0 @@
1
- export interface Provider {
2
- id: string;
3
- name: string;
4
- iconLink: string | null;
5
- signupEnabled: boolean;
6
- connectEnabled: boolean;
7
- }
8
- export interface AuthenticationConfiguration {
9
- hydroserverSignupEnabled: boolean;
10
- providers: Provider[];
11
- }
12
- export interface ContactOption {
13
- title: string;
14
- text: string | null;
15
- action: string | null;
16
- icon: string | null;
17
- link: string | null;
18
- }
19
- export interface AboutInformation {
20
- showAboutInformation: boolean;
21
- title: string | null;
22
- text: string | null;
23
- contactOptions: ContactOption[];
24
- }
25
- export declare enum ElevationService {
26
- OpenElevation = "openElevation",
27
- Google = "google"
28
- }
29
- export declare enum GeoService {
30
- Nominatim = "nominatim",
31
- Google = "google"
32
- }
33
- export interface MapLayer {
34
- name: string;
35
- source: string;
36
- attribution: string;
37
- priority?: number | null;
38
- }
39
- export interface MapConfiguration {
40
- defaultLatitude: number;
41
- defaultLongitude: number;
42
- defaultZoomLevel: number;
43
- defaultBaseLayer: string;
44
- defaultSatelliteLayer: string;
45
- elevationService: ElevationService;
46
- geoService: GeoService;
47
- basemapLayers: MapLayer[];
48
- overlayLayers: MapLayer[];
49
- }
50
- export interface AnalyticsConfiguration {
51
- enableClarityAnalytics: boolean;
52
- clarityProjectId?: string | null;
53
- }
54
- export interface LegalInformation {
55
- termsOfUseLink?: string | null;
56
- privacyPolicyLink?: string | null;
57
- copyright?: string | null;
58
- }
59
- export interface AppSettings {
60
- authenticationConfiguration: AuthenticationConfiguration;
61
- aboutInformation: AboutInformation;
62
- mapConfiguration: MapConfiguration;
63
- analyticsConfiguration: AnalyticsConfiguration;
64
- legalInformation: LegalInformation;
65
- }
@@ -1,150 +0,0 @@
1
- export declare const FIXED_OFFSET_TIMEZONES: readonly [{
2
- readonly title: "UTC-12:00 (International Date Line West)";
3
- readonly value: "-1200";
4
- }, {
5
- readonly title: "UTC-11:00 (Samoa Standard Time)";
6
- readonly value: "-1100";
7
- }, {
8
- readonly title: "UTC-10:00 (Hawaii-Aleutian Standard Time)";
9
- readonly value: "-1000";
10
- }, {
11
- readonly title: "UTC-09:00 (Alaska Standard Time)";
12
- readonly value: "-0900";
13
- }, {
14
- readonly title: "UTC-08:00 (Pacific Standard Time)";
15
- readonly value: "-0800";
16
- }, {
17
- readonly title: "UTC-07:00 (Mountain Standard Time)";
18
- readonly value: "-0700";
19
- }, {
20
- readonly title: "UTC-06:00 (Central Standard Time)";
21
- readonly value: "-0600";
22
- }, {
23
- readonly title: "UTC-05:00 (Eastern Standard Time)";
24
- readonly value: "-0500";
25
- }, {
26
- readonly title: "UTC-04:30 (Venezuelan Standard Time)";
27
- readonly value: "-0430";
28
- }, {
29
- readonly title: "UTC-04:00 (Atlantic Standard Time)";
30
- readonly value: "-0400";
31
- }, {
32
- readonly title: "UTC-03:30 (Newfoundland Standard Time)";
33
- readonly value: "-0330";
34
- }, {
35
- readonly title: "UTC-03:00 (Argentina Standard Time)";
36
- readonly value: "-0300";
37
- }, {
38
- readonly title: "UTC-02:00 (Brazil Time)";
39
- readonly value: "-0200";
40
- }, {
41
- readonly title: "UTC-01:00 (Azores Standard Time)";
42
- readonly value: "-0100";
43
- }, {
44
- readonly title: "UTC+00:00 (Greenwich Mean Time)";
45
- readonly value: "+0000";
46
- }, {
47
- readonly title: "UTC+01:00 (Central European Time)";
48
- readonly value: "+0100";
49
- }, {
50
- readonly title: "UTC+02:00 (Eastern European Time)";
51
- readonly value: "+0200";
52
- }, {
53
- readonly title: "UTC+03:00 (Moscow Standard Time)";
54
- readonly value: "+0300";
55
- }, {
56
- readonly title: "UTC+03:30 (Iran Standard Time)";
57
- readonly value: "+0330";
58
- }, {
59
- readonly title: "UTC+04:00 (Azerbaijan Standard Time)";
60
- readonly value: "+0400";
61
- }, {
62
- readonly title: "UTC+04:30 (Afghanistan Time)";
63
- readonly value: "+0430";
64
- }, {
65
- readonly title: "UTC+05:00 (Pakistan Standard Time)";
66
- readonly value: "+0500";
67
- }, {
68
- readonly title: "UTC+05:30 (Indian Standard Time)";
69
- readonly value: "+0530";
70
- }, {
71
- readonly title: "UTC+05:45 (Nepal Time)";
72
- readonly value: "+0545";
73
- }, {
74
- readonly title: "UTC+06:00 (Bangladesh Standard Time)";
75
- readonly value: "+0600";
76
- }, {
77
- readonly title: "UTC+06:30 (Cocos Islands Time)";
78
- readonly value: "+0630";
79
- }, {
80
- readonly title: "UTC+07:00 (Indochina Time)";
81
- readonly value: "+0700";
82
- }, {
83
- readonly title: "UTC+08:00 (China Standard Time)";
84
- readonly value: "+0800";
85
- }, {
86
- readonly title: "UTC+08:45 (Australia Central Western Standard Time)";
87
- readonly value: "+0845";
88
- }, {
89
- readonly title: "UTC+09:00 (Japan Standard Time)";
90
- readonly value: "+0900";
91
- }, {
92
- readonly title: "UTC+09:30 (Australian Central Standard Time)";
93
- readonly value: "+0930";
94
- }, {
95
- readonly title: "UTC+10:00 (Australian Eastern Standard Time)";
96
- readonly value: "+1000";
97
- }, {
98
- readonly title: "UTC+10:30 (Lord Howe Standard Time)";
99
- readonly value: "+1030";
100
- }, {
101
- readonly title: "UTC+11:00 (Solomon Islands Time)";
102
- readonly value: "+1100";
103
- }, {
104
- readonly title: "UTC+11:30 (Norfolk Island Time)";
105
- readonly value: "+1130";
106
- }, {
107
- readonly title: "UTC+12:00 (Fiji Time)";
108
- readonly value: "+1200";
109
- }, {
110
- readonly title: "UTC+12:45 (Chatham Islands Time)";
111
- readonly value: "+1245";
112
- }, {
113
- readonly title: "UTC+13:00 (Tonga Time)";
114
- readonly value: "+1300";
115
- }, {
116
- readonly title: "UTC+14:00 (Line Islands Time)";
117
- readonly value: "+1400";
118
- }];
119
- export type FixedOffsetTimezone = (typeof FIXED_OFFSET_TIMEZONES)[number]['value'];
120
- export declare const DST_AWARE_TIMEZONES: {
121
- title: string;
122
- value: string;
123
- }[];
124
- export type DstAwareTimezone = (typeof DST_AWARE_TIMEZONES)[number]['value'];
125
- export declare const TIMESTAMP_FORMATS: readonly [{
126
- readonly text: "Full ISO 8601 (YYYY-MM-DD hh:mm:ss.ssss+hh:mm)";
127
- readonly value: "ISO8601";
128
- }, {
129
- readonly text: "Timezone naive (YYYY-MM-DD hh:mm:ss)";
130
- readonly value: "naive";
131
- }, {
132
- readonly text: "Custom Format";
133
- readonly value: "custom";
134
- }];
135
- export type TimestampFormat = (typeof TIMESTAMP_FORMATS)[number]['value'];
136
- export type TimezoneMode = 'utc' | 'daylightSavings' | 'fixedOffset' | 'embeddedOffset';
137
- export interface Timestamp {
138
- key?: string;
139
- format: TimestampFormat;
140
- customFormat?: string;
141
- /**
142
- * Determines how we interpret the timestamp’s timezone:
143
- * - `utc`: timestamp is naive and UTC
144
- * - `daylightSavings`: use an IANA zone from DST_AWARE_TIMEZONES
145
- * - `fixedOffset`: use a value from FIXED_OFFSET_TIMEZONES
146
- * - `embeddedOffset`: rely on the ±HH:MM in the ISO8601 string
147
- */
148
- timezoneMode: TimezoneMode;
149
- timezone?: FixedOffsetTimezone | DstAwareTimezone;
150
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,147 +0,0 @@
1
- import { Unit, Thing, Sensor, ResultQualifier, ProcessingLevel, ObservedProperty, Datastream, Tag, PostHydroShareArchive, HydroShareArchive, User, Workspace, ApiKey } from '@/types';
2
- import { DataSource } from '@/models';
3
- import { OrchestrationSystem } from '@/models/dataSource';
4
- export declare const BASE_URL: string;
5
- export declare const AUTH_BASE: string;
6
- export declare const ACCOUNT_BASE: string;
7
- export declare const SESSION_BASE: string;
8
- export declare const PROVIDER_BASE: string;
9
- export declare const THINGS_BASE: string;
10
- export declare const TAG_BASE: string;
11
- type DatastreamFilterKey = 'unit_id' | 'sensor_id' | 'observed_property_id' | 'processing_level_id' | 'result_qualifier_id';
12
- export declare const getObservationsEndpoint: (id: string, pageSize: number, startTime: string, endTime?: string, page?: number) => string;
13
- export declare const api: {
14
- fetchSession: () => Promise<any>;
15
- login: (email: string, password: string) => Promise<any>;
16
- logout: () => Promise<any>;
17
- fetchUser: () => Promise<any>;
18
- signup: (user: User) => Promise<any>;
19
- updateUser: (user: User, oldUser: User) => Promise<any>;
20
- deleteUser: () => Promise<any>;
21
- sendVerificationEmail: (email: string) => Promise<any>;
22
- verifyEmailWithCode: (key: string) => Promise<any>;
23
- requestPasswordReset: (email: string) => Promise<any>;
24
- resetPassword: (key: string, password: string) => Promise<any>;
25
- fetchWorkspaces: () => Promise<any>;
26
- fetchAssociatedWorkspaces: () => Promise<any>;
27
- fetchWorkspace: (id: string) => Promise<any>;
28
- createWorkspace: (postWorkspace: Workspace) => Promise<any>;
29
- updateWorkspace: (newWorkspace: Workspace, oldWorkspace?: Workspace | null) => Promise<any>;
30
- deleteWorkspace: (id: string) => Promise<any>;
31
- transferWorkspace: (id: string, newOwner: string) => Promise<any>;
32
- acceptWorkspaceTransfer: (id: string) => Promise<any>;
33
- rejectWorkspaceTransfer: (id: string) => Promise<any>;
34
- getCollaboratorRoles: (id: string) => Promise<any>;
35
- getAPIKeyRoles: (id: string) => Promise<any>;
36
- getRole: (roleId: string) => Promise<any>;
37
- getCollaborators: (id: string) => Promise<any>;
38
- addCollaborator: (id: string, email: string, roleId: string) => Promise<any>;
39
- updateCollaboratorRole: (id: string, email: string, roleId: string) => Promise<any>;
40
- removeCollaborator: (id: string, email: string) => Promise<any>;
41
- fetchApiKeys: (workspaceId: string) => Promise<any>;
42
- fetchApiKey: (workspaceId: string, apiKeyId: string) => Promise<any>;
43
- createApiKey: (apiKey: ApiKey) => Promise<any>;
44
- updateApiKey: (newKey: ApiKey, oldKey?: ApiKey) => Promise<any>;
45
- regenerateApiKey: (id: string, apiKeyId: string) => Promise<any>;
46
- deleteApiKey: (id: string, apiKeyId: string) => Promise<any>;
47
- fetchConnectedProviders: () => Promise<any>;
48
- providerRedirect: (provider: string, callbackUrl: string, process: string) => void;
49
- providerSignup: (user: User) => Promise<any>;
50
- deleteProvider: (provider: string, account: string) => Promise<any>;
51
- createUnit: (unit: Unit) => Promise<any>;
52
- fetchUnits: () => Promise<any>;
53
- fetchWorkspaceUnits: (id: string) => Promise<any>;
54
- updateUnit: (newUnit: Unit, oldUnit?: Unit | null) => Promise<any>;
55
- deleteUnit: (id: string) => Promise<any>;
56
- getUnit: (id: string) => Promise<any>;
57
- removeThingOwner: (id: string, email: string) => Promise<any>;
58
- addSecondaryOwner: (id: string, email: string) => Promise<any>;
59
- transferPrimaryOwnership: (id: string, email: string) => Promise<any>;
60
- createThing: (thing: Thing) => Promise<any>;
61
- fetchThings: () => Promise<any>;
62
- fetchThingsForWorkspace: (id: string) => Promise<any>;
63
- fetchOwnedThings: () => Promise<any>;
64
- fetchThing: (id: string) => Promise<any>;
65
- updateThing: (thing: Thing) => Promise<any>;
66
- updateThingPrivacy: (id: string, isPrivate: boolean) => Promise<any>;
67
- deleteThing: (id: string) => Promise<any>;
68
- fetchMetadataForThingOwner: (thingId: string) => Promise<any>;
69
- fetchMetadataForThing: (thingId: string) => Promise<any>;
70
- uploadSitePhotos: (thingId: string, data: FormData) => Promise<any>;
71
- fetchSitePhotos: (thingId: string) => Promise<any>;
72
- deleteSitePhoto: (thingId: string, name: string) => Promise<any>;
73
- createSiteTag: (thingId: string, tag: Tag) => Promise<any>;
74
- editSiteTag: (thingId: string, tag: Tag) => Promise<any>;
75
- fetchSiteTags: (thingId: string) => Promise<any>;
76
- fetchUsersSiteTags: () => Promise<any>;
77
- deleteSiteTag: (thingId: string, tag: Tag) => Promise<any>;
78
- fetchWorkspaceTags: (workspaceId: string) => Promise<any>;
79
- createHydroShareArchive: (archive: PostHydroShareArchive) => Promise<any>;
80
- updateHydroShareArchive: (newArchive: HydroShareArchive, oldArchive?: HydroShareArchive) => Promise<any>;
81
- fetchHydroShareArchive: (thingId: string) => Promise<any>;
82
- deleteHydroShareArchive: (thingId: string) => Promise<any>;
83
- archiveToHydroShare: (thingId: string) => Promise<any>;
84
- createDatastream: (datastream: Datastream) => Promise<any>;
85
- fetchDatastreams: (filters?: Partial<Record<DatastreamFilterKey, string>>) => Promise<any>;
86
- fetchDatastreamsForThing: (thingId: string) => Promise<any>;
87
- fetchExpandedDatastreamsForThing: (thingId: string) => Promise<any>;
88
- fetchDatastreamsForDataSource: (id: string) => Promise<any>;
89
- fetchDatastream: (id: string) => Promise<any>;
90
- fetchDatastreamExpanded: (id: string) => Promise<any>;
91
- fetchUsersDatastreams: () => Promise<any>;
92
- updateDatastream: (newDS: Datastream, oldDS?: Datastream | null) => Promise<any>;
93
- deleteDatastream: (id: string) => Promise<any>;
94
- downloadDatastreamCSV: (id: string) => Promise<any>;
95
- createObservedProperty: (op: ObservedProperty) => Promise<any>;
96
- fetchObservedProperty: (id: string) => Promise<any>;
97
- fetchObservedProperties: () => Promise<any>;
98
- fetchWorkspaceObservedProperties: (id: string) => Promise<any>;
99
- updateObservedProperty: (newOP: ObservedProperty, oldOP?: ObservedProperty | null) => Promise<any>;
100
- deleteObservedProperty: (id: string) => Promise<any>;
101
- createProcessingLevel: (pl: ProcessingLevel) => Promise<any>;
102
- fetchProcessingLevels: () => Promise<any>;
103
- fetchProcessingLevel: (id: string) => Promise<any>;
104
- fetchWorkspaceProcessingLevels: (id: string) => Promise<any>;
105
- updateProcessingLevel: (newPL: ProcessingLevel, oldPL?: ProcessingLevel | null) => Promise<any>;
106
- deleteProcessingLevel: (id: string) => Promise<any>;
107
- createSensor: (sensor: Sensor) => Promise<any>;
108
- fetchSensors: () => Promise<any>;
109
- fetchSensor: (id: string) => Promise<any>;
110
- fetchWorkspaceSensors: (id: string) => Promise<any>;
111
- updateSensor: (newSensor: Sensor, oldSensor?: Sensor | null) => Promise<any>;
112
- deleteSensor: (id: string) => Promise<any>;
113
- createResultQualifier: (resultQualifier: ResultQualifier) => Promise<any>;
114
- fetchResultQualifiers: () => Promise<any>;
115
- fetchWorkspaceResultQualifiers: (id: string) => Promise<any>;
116
- updateResultQualifier: (newResultQualifier: ResultQualifier, oldResultQualifier?: ResultQualifier | null) => Promise<any>;
117
- deleteResultQualifier: (id: string) => Promise<any>;
118
- createOrchestrationSystem: (system: OrchestrationSystem) => Promise<any>;
119
- fetchOrchestrationSystems: () => Promise<any>;
120
- fetchWorkspaceOrchestrationSystems: (id: string) => Promise<any>;
121
- fetchOrchestrationSystem: (id: string) => Promise<any>;
122
- updateOrchestrationSystem: (id: string, system: OrchestrationSystem) => Promise<any>;
123
- deleteOrchestrationSystem: (id: string) => Promise<any>;
124
- createDataSource: (dataSource: DataSource) => Promise<any>;
125
- fetchDataSources: () => Promise<any>;
126
- fetchWorkspaceDataSources: (id: string) => Promise<any>;
127
- fetchDataSource: (id: string) => Promise<any>;
128
- updateDataSource: (newS: DataSource) => Promise<any>;
129
- updateDataSourcePartial: (newS: DataSource) => Promise<any>;
130
- deleteDataSource: (id: string) => Promise<any>;
131
- linkDatastreamToDataSource: (dataSourceId: string, datastreamId: string) => Promise<any>;
132
- unlinkDatastreamFromDataSource: (dataSourceId: string, datastreamId: string) => Promise<any>;
133
- fetchObservations: (endpoint: string) => Promise<any>;
134
- deleteObservationsForDatastream: (datastreamId: string) => Promise<any>;
135
- fetchUserTypes: () => Promise<any>;
136
- fetchOrganizationTypes: () => Promise<any>;
137
- fetchSiteTypes: () => Promise<any>;
138
- fetchSamplingFeatureTypes: () => Promise<any>;
139
- fetchSensorEncodingTypes: () => Promise<any>;
140
- fetchMethodTypes: () => Promise<any>;
141
- fetchVariableTypes: () => Promise<any>;
142
- fetchUnitTypes: () => Promise<any>;
143
- fetchDatastreamStatuses: () => Promise<any>;
144
- fetchDatastreamAggregations: () => Promise<any>;
145
- fetchSampledMediums: () => Promise<any>;
146
- };
147
- export {};
@@ -1,8 +0,0 @@
1
- export declare const apiMethods: {
2
- fetch(endpoint: string, options?: any): Promise<any>;
3
- patch(endpoint: string, body: any, originalBody?: any, options?: any): Promise<any>;
4
- post(endpoint: string, body?: any, options?: any): Promise<any>;
5
- put(endpoint: string, body?: any, options?: any): Promise<any>;
6
- delete(endpoint: string, body?: any, options?: any): Promise<any>;
7
- paginatedFetch<T>(base: string, pageSize?: number): Promise<any>;
8
- };
@@ -1,17 +0,0 @@
1
- /**
2
- * Creates an object that represents the differences (patches) between the
3
- * original and the updated objects.
4
- *
5
- * This function iterates through the properties of the updated object and compares each property
6
- * with the corresponding property in the original object. If a difference is found:
7
- * 1. For properties that are objects, it recursively computes the nested differences.
8
- * 2. For other properties, it directly assigns the updated value.
9
- *
10
- * Note: The function only checks properties that exist in the updated object.
11
- *
12
- * @param {any} original - The original object to compare from.
13
- * @param {any} updated - The updated object to compare against.
14
- * @returns {any} An object representing the differences between the two input objects.
15
- * If two properties are identical, they won't appear in the result.
16
- */
17
- export declare function createPatchObject(original: any, updated: any): any;
@@ -1 +0,0 @@
1
- export declare function getCSRFToken(): string | null;
@@ -1,6 +0,0 @@
1
- export * from './api';
2
- export * from './apiMethods';
3
- export * from './createPatchObject';
4
- export * from './getCSRFToken';
5
- export * from './requestInterceptor';
6
- export * from './responseInterceptor';
@@ -1,12 +0,0 @@
1
- /**
2
- * Intercepts and enhances a request options object.
3
- *
4
- * - Adds Django AllAuth 'sessionid' to all requests
5
- * - Adds CSRF Token to non-GET requests
6
- * - If a body is present and it's an object, the body is stringified.
7
- *
8
- * @param {any} options - The original request options object.
9
- *
10
- * @returns {any} The enhanced request options with possible modified headers and body.
11
- */
12
- export declare function requestInterceptor(options: any): any;
@@ -1,2 +0,0 @@
1
- export declare function extractErrorMessage(body: any): any;
2
- export declare function responseInterceptor(response: Response): Promise<any>;