@wix/workflows 1.0.27 → 1.0.28

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/workflows",
3
- "version": "1.0.27",
3
+ "version": "1.0.28",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/",
6
6
  "access": "public"
@@ -18,12 +18,11 @@
18
18
  "type-bundles"
19
19
  ],
20
20
  "dependencies": {
21
- "@wix/workflows_cards": "1.0.12",
22
- "@wix/workflows_phases": "1.0.12",
23
- "@wix/workflows_workflows": "1.0.12"
21
+ "@wix/workflows_cards": "1.0.13",
22
+ "@wix/workflows_phases": "1.0.13",
23
+ "@wix/workflows_workflows": "1.0.13"
24
24
  },
25
25
  "devDependencies": {
26
- "@wix/sdk": "https://cdn.dev.wixpress.com/@wix/sdk/02e8069ab2fd783e0e6a080fc7d590e76cb26ab93c8389574286305b.tar.gz",
27
26
  "glob": "^10.4.1",
28
27
  "rollup": "^4.18.0",
29
28
  "rollup-plugin-dts": "^6.1.1",
@@ -45,5 +44,5 @@
45
44
  "fqdn": ""
46
45
  }
47
46
  },
48
- "falconPackageHash": "8d2260cdf7b2d9719926ae42822df1cd65ba08e012fd1ca2a23ae8b9"
47
+ "falconPackageHash": "f248be47d4c75bf15bfea9a9f7fd5c2fa18cb9899dc7c102a4dd1d6e"
49
48
  }
@@ -180,33 +180,41 @@ interface RestoreCardOptions {
180
180
  newPosition?: number | null;
181
181
  }
182
182
 
183
- type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
184
- interface HttpClient {
185
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
183
+ type RESTFunctionDescriptor$2<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$2) => T;
184
+ interface HttpClient$2 {
185
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
186
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
186
187
  }
187
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
188
- type HttpResponse<T = any> = {
188
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
189
+ type HttpResponse$2<T = any> = {
189
190
  data: T;
190
191
  status: number;
191
192
  statusText: string;
192
193
  headers: any;
193
194
  request?: any;
194
195
  };
195
- type RequestOptions<_TResponse = any, Data = any> = {
196
+ type RequestOptions$2<_TResponse = any, Data = any> = {
196
197
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
197
198
  url: string;
198
199
  data?: Data;
199
200
  params?: URLSearchParams;
200
- } & APIMetadata;
201
- type APIMetadata = {
201
+ } & APIMetadata$2;
202
+ type APIMetadata$2 = {
202
203
  methodFqn?: string;
203
204
  entityFqdn?: string;
204
205
  packageName?: string;
205
206
  };
206
- type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
207
+ type BuildRESTFunction$2<T extends RESTFunctionDescriptor$2> = T extends RESTFunctionDescriptor$2<infer U> ? U : never;
208
+
209
+ declare global {
210
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
211
+ interface SymbolConstructor {
212
+ readonly observable: symbol;
213
+ }
214
+ }
207
215
 
208
- declare function listCards$1(httpClient: HttpClient): (workflowId: string, options?: ListCardsOptions) => Promise<ListCardsResponse & ListCardsResponseNonNullableFields>;
209
- declare function getCard$1(httpClient: HttpClient): (_id: string) => Promise<Card$2 & {
216
+ declare function listCards$1(httpClient: HttpClient$2): (workflowId: string, options?: ListCardsOptions) => Promise<ListCardsResponse & ListCardsResponseNonNullableFields>;
217
+ declare function getCard$1(httpClient: HttpClient$2): (_id: string) => Promise<Card$2 & {
210
218
  info?: {
211
219
  primaryAttachment?: {
212
220
  attachmentId: string;
@@ -216,21 +224,21 @@ declare function getCard$1(httpClient: HttpClient): (_id: string) => Promise<Car
216
224
  } | undefined;
217
225
  } | undefined;
218
226
  }>;
219
- declare function updateCard$1(httpClient: HttpClient): (_id: string, cardInfo: CardInfo$2) => Promise<void>;
220
- declare function createCard$1(httpClient: HttpClient): (identifiers: CreateCardIdentifiers, card: CardInfo$2, options?: CreateCardOptions) => Promise<CreateCardResponse>;
221
- declare function deleteCard$1(httpClient: HttpClient): (_id: string) => Promise<void>;
222
- declare function moveCard$1(httpClient: HttpClient): (_id: string, options?: MoveCardOptions) => Promise<void>;
223
- declare function restoreCard$1(httpClient: HttpClient): (_id: string, newPhaseId: string, options?: RestoreCardOptions) => Promise<void>;
224
- declare function archiveCard$1(httpClient: HttpClient): (_id: string) => Promise<void>;
227
+ declare function updateCard$1(httpClient: HttpClient$2): (_id: string, cardInfo: CardInfo$2) => Promise<void>;
228
+ declare function createCard$1(httpClient: HttpClient$2): (identifiers: CreateCardIdentifiers, card: CardInfo$2, options?: CreateCardOptions) => Promise<CreateCardResponse>;
229
+ declare function deleteCard$1(httpClient: HttpClient$2): (_id: string) => Promise<void>;
230
+ declare function moveCard$1(httpClient: HttpClient$2): (_id: string, options?: MoveCardOptions) => Promise<void>;
231
+ declare function restoreCard$1(httpClient: HttpClient$2): (_id: string, newPhaseId: string, options?: RestoreCardOptions) => Promise<void>;
232
+ declare function archiveCard$1(httpClient: HttpClient$2): (_id: string) => Promise<void>;
225
233
 
226
- declare const listCards: BuildRESTFunction<typeof listCards$1>;
227
- declare const getCard: BuildRESTFunction<typeof getCard$1>;
228
- declare const updateCard: BuildRESTFunction<typeof updateCard$1>;
229
- declare const createCard: BuildRESTFunction<typeof createCard$1>;
230
- declare const deleteCard: BuildRESTFunction<typeof deleteCard$1>;
231
- declare const moveCard: BuildRESTFunction<typeof moveCard$1>;
232
- declare const restoreCard: BuildRESTFunction<typeof restoreCard$1>;
233
- declare const archiveCard: BuildRESTFunction<typeof archiveCard$1>;
234
+ declare const listCards: BuildRESTFunction$2<typeof listCards$1>;
235
+ declare const getCard: BuildRESTFunction$2<typeof getCard$1>;
236
+ declare const updateCard: BuildRESTFunction$2<typeof updateCard$1>;
237
+ declare const createCard: BuildRESTFunction$2<typeof createCard$1>;
238
+ declare const deleteCard: BuildRESTFunction$2<typeof deleteCard$1>;
239
+ declare const moveCard: BuildRESTFunction$2<typeof moveCard$1>;
240
+ declare const restoreCard: BuildRESTFunction$2<typeof restoreCard$1>;
241
+ declare const archiveCard: BuildRESTFunction$2<typeof archiveCard$1>;
234
242
 
235
243
  declare const context$2_archiveCard: typeof archiveCard;
236
244
  declare const context$2_createCard: typeof createCard;
@@ -427,8 +435,41 @@ interface MovePhaseIdentifiers {
427
435
  _id: string;
428
436
  }
429
437
 
430
- declare function listPhases$1(httpClient: HttpClient): (workflowId: string, options?: ListPhasesOptions) => Promise<ListPhasesResponse & ListPhasesResponseNonNullableFields>;
431
- declare function getPhase$1(httpClient: HttpClient): (_id: string) => Promise<Phase$1 & {
438
+ type RESTFunctionDescriptor$1<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient$1) => T;
439
+ interface HttpClient$1 {
440
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
441
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
442
+ }
443
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
444
+ type HttpResponse$1<T = any> = {
445
+ data: T;
446
+ status: number;
447
+ statusText: string;
448
+ headers: any;
449
+ request?: any;
450
+ };
451
+ type RequestOptions$1<_TResponse = any, Data = any> = {
452
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
453
+ url: string;
454
+ data?: Data;
455
+ params?: URLSearchParams;
456
+ } & APIMetadata$1;
457
+ type APIMetadata$1 = {
458
+ methodFqn?: string;
459
+ entityFqdn?: string;
460
+ packageName?: string;
461
+ };
462
+ type BuildRESTFunction$1<T extends RESTFunctionDescriptor$1> = T extends RESTFunctionDescriptor$1<infer U> ? U : never;
463
+
464
+ declare global {
465
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
466
+ interface SymbolConstructor {
467
+ readonly observable: symbol;
468
+ }
469
+ }
470
+
471
+ declare function listPhases$1(httpClient: HttpClient$1): (workflowId: string, options?: ListPhasesOptions) => Promise<ListPhasesResponse & ListPhasesResponseNonNullableFields>;
472
+ declare function getPhase$1(httpClient: HttpClient$1): (_id: string) => Promise<Phase$1 & {
432
473
  cardsList?: {
433
474
  total: number;
434
475
  cards: {
@@ -443,17 +484,17 @@ declare function getPhase$1(httpClient: HttpClient): (_id: string) => Promise<Ph
443
484
  }[];
444
485
  } | undefined;
445
486
  }>;
446
- declare function updatePhase$1(httpClient: HttpClient): (_id: string, phase: PhaseInfo$1) => Promise<void>;
447
- declare function createPhase$1(httpClient: HttpClient): (workflowId: string, phase: PhaseInfo$1, options?: CreatePhaseOptions) => Promise<CreatePhaseResponse>;
448
- declare function deletePhase$1(httpClient: HttpClient): (_id: string) => Promise<void>;
449
- declare function movePhase$1(httpClient: HttpClient): (identifiers: MovePhaseIdentifiers, newPosition: number | null) => Promise<void>;
487
+ declare function updatePhase$1(httpClient: HttpClient$1): (_id: string, phase: PhaseInfo$1) => Promise<void>;
488
+ declare function createPhase$1(httpClient: HttpClient$1): (workflowId: string, phase: PhaseInfo$1, options?: CreatePhaseOptions) => Promise<CreatePhaseResponse>;
489
+ declare function deletePhase$1(httpClient: HttpClient$1): (_id: string) => Promise<void>;
490
+ declare function movePhase$1(httpClient: HttpClient$1): (identifiers: MovePhaseIdentifiers, newPosition: number | null) => Promise<void>;
450
491
 
451
- declare const listPhases: BuildRESTFunction<typeof listPhases$1>;
452
- declare const getPhase: BuildRESTFunction<typeof getPhase$1>;
453
- declare const updatePhase: BuildRESTFunction<typeof updatePhase$1>;
454
- declare const createPhase: BuildRESTFunction<typeof createPhase$1>;
455
- declare const deletePhase: BuildRESTFunction<typeof deletePhase$1>;
456
- declare const movePhase: BuildRESTFunction<typeof movePhase$1>;
492
+ declare const listPhases: BuildRESTFunction$1<typeof listPhases$1>;
493
+ declare const getPhase: BuildRESTFunction$1<typeof getPhase$1>;
494
+ declare const updatePhase: BuildRESTFunction$1<typeof updatePhase$1>;
495
+ declare const createPhase: BuildRESTFunction$1<typeof createPhase$1>;
496
+ declare const deletePhase: BuildRESTFunction$1<typeof deletePhase$1>;
497
+ declare const movePhase: BuildRESTFunction$1<typeof movePhase$1>;
457
498
 
458
499
  declare const context$1_createPhase: typeof createPhase;
459
500
  declare const context$1_deletePhase: typeof deletePhase;
@@ -675,6 +716,39 @@ interface ListWorkflowsOptions {
675
716
  sort?: string[];
676
717
  }
677
718
 
719
+ type RESTFunctionDescriptor<T extends (...args: any[]) => any = (...args: any[]) => any> = (httpClient: HttpClient) => T;
720
+ interface HttpClient {
721
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
722
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
723
+ }
724
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
725
+ type HttpResponse<T = any> = {
726
+ data: T;
727
+ status: number;
728
+ statusText: string;
729
+ headers: any;
730
+ request?: any;
731
+ };
732
+ type RequestOptions<_TResponse = any, Data = any> = {
733
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
734
+ url: string;
735
+ data?: Data;
736
+ params?: URLSearchParams;
737
+ } & APIMetadata;
738
+ type APIMetadata = {
739
+ methodFqn?: string;
740
+ entityFqdn?: string;
741
+ packageName?: string;
742
+ };
743
+ type BuildRESTFunction<T extends RESTFunctionDescriptor> = T extends RESTFunctionDescriptor<infer U> ? U : never;
744
+
745
+ declare global {
746
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
747
+ interface SymbolConstructor {
748
+ readonly observable: symbol;
749
+ }
750
+ }
751
+
678
752
  declare function listWorkflows$1(httpClient: HttpClient): (options?: ListWorkflowsOptions) => Promise<ListWorkflowsResponse & ListWorkflowsResponseNonNullableFields>;
679
753
  declare function getWorkflow$1(httpClient: HttpClient): (_id: string, cardsPerPhase: number | null) => Promise<Workflow & {
680
754
  winPhase?: {
@@ -457,34 +457,42 @@ interface RestoreCardOptions {
457
457
  newPosition?: number | null;
458
458
  }
459
459
 
460
- interface HttpClient {
461
- request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
460
+ interface HttpClient$2 {
461
+ request<TResponse, TData = any>(req: RequestOptionsFactory$2<TResponse, TData>): Promise<HttpResponse$2<TResponse>>;
462
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
462
463
  }
463
- type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
464
- type HttpResponse<T = any> = {
464
+ type RequestOptionsFactory$2<TResponse = any, TData = any> = (context: any) => RequestOptions$2<TResponse, TData>;
465
+ type HttpResponse$2<T = any> = {
465
466
  data: T;
466
467
  status: number;
467
468
  statusText: string;
468
469
  headers: any;
469
470
  request?: any;
470
471
  };
471
- type RequestOptions<_TResponse = any, Data = any> = {
472
+ type RequestOptions$2<_TResponse = any, Data = any> = {
472
473
  method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
473
474
  url: string;
474
475
  data?: Data;
475
476
  params?: URLSearchParams;
476
- } & APIMetadata;
477
- type APIMetadata = {
477
+ } & APIMetadata$2;
478
+ type APIMetadata$2 = {
478
479
  methodFqn?: string;
479
480
  entityFqdn?: string;
480
481
  packageName?: string;
481
482
  };
482
483
 
484
+ declare global {
485
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
486
+ interface SymbolConstructor {
487
+ readonly observable: symbol;
488
+ }
489
+ }
490
+
483
491
  declare const __metadata$2: {
484
492
  PACKAGE_NAME: string;
485
493
  };
486
- declare function listCards(httpClient: HttpClient): (workflowId: string, options?: ListCardsOptions) => Promise<ListCardsResponse & ListCardsResponseNonNullableFields>;
487
- declare function getCard(httpClient: HttpClient): (_id: string) => Promise<Card$2 & {
494
+ declare function listCards(httpClient: HttpClient$2): (workflowId: string, options?: ListCardsOptions) => Promise<ListCardsResponse & ListCardsResponseNonNullableFields>;
495
+ declare function getCard(httpClient: HttpClient$2): (_id: string) => Promise<Card$2 & {
488
496
  info?: {
489
497
  primaryAttachment?: {
490
498
  attachmentId: string;
@@ -494,12 +502,12 @@ declare function getCard(httpClient: HttpClient): (_id: string) => Promise<Card$
494
502
  } | undefined;
495
503
  } | undefined;
496
504
  }>;
497
- declare function updateCard(httpClient: HttpClient): (_id: string, cardInfo: CardInfo$2) => Promise<void>;
498
- declare function createCard(httpClient: HttpClient): (identifiers: CreateCardIdentifiers, card: CardInfo$2, options?: CreateCardOptions) => Promise<CreateCardResponse>;
499
- declare function deleteCard(httpClient: HttpClient): (_id: string) => Promise<void>;
500
- declare function moveCard(httpClient: HttpClient): (_id: string, options?: MoveCardOptions) => Promise<void>;
501
- declare function restoreCard(httpClient: HttpClient): (_id: string, newPhaseId: string, options?: RestoreCardOptions) => Promise<void>;
502
- declare function archiveCard(httpClient: HttpClient): (_id: string) => Promise<void>;
505
+ declare function updateCard(httpClient: HttpClient$2): (_id: string, cardInfo: CardInfo$2) => Promise<void>;
506
+ declare function createCard(httpClient: HttpClient$2): (identifiers: CreateCardIdentifiers, card: CardInfo$2, options?: CreateCardOptions) => Promise<CreateCardResponse>;
507
+ declare function deleteCard(httpClient: HttpClient$2): (_id: string) => Promise<void>;
508
+ declare function moveCard(httpClient: HttpClient$2): (_id: string, options?: MoveCardOptions) => Promise<void>;
509
+ declare function restoreCard(httpClient: HttpClient$2): (_id: string, newPhaseId: string, options?: RestoreCardOptions) => Promise<void>;
510
+ declare function archiveCard(httpClient: HttpClient$2): (_id: string) => Promise<void>;
503
511
 
504
512
  type index_d$2_ActionEvent = ActionEvent;
505
513
  type index_d$2_ArchiveCardRequest = ArchiveCardRequest;
@@ -876,11 +884,42 @@ interface MovePhaseIdentifiers {
876
884
  _id: string;
877
885
  }
878
886
 
887
+ interface HttpClient$1 {
888
+ request<TResponse, TData = any>(req: RequestOptionsFactory$1<TResponse, TData>): Promise<HttpResponse$1<TResponse>>;
889
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
890
+ }
891
+ type RequestOptionsFactory$1<TResponse = any, TData = any> = (context: any) => RequestOptions$1<TResponse, TData>;
892
+ type HttpResponse$1<T = any> = {
893
+ data: T;
894
+ status: number;
895
+ statusText: string;
896
+ headers: any;
897
+ request?: any;
898
+ };
899
+ type RequestOptions$1<_TResponse = any, Data = any> = {
900
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
901
+ url: string;
902
+ data?: Data;
903
+ params?: URLSearchParams;
904
+ } & APIMetadata$1;
905
+ type APIMetadata$1 = {
906
+ methodFqn?: string;
907
+ entityFqdn?: string;
908
+ packageName?: string;
909
+ };
910
+
911
+ declare global {
912
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
913
+ interface SymbolConstructor {
914
+ readonly observable: symbol;
915
+ }
916
+ }
917
+
879
918
  declare const __metadata$1: {
880
919
  PACKAGE_NAME: string;
881
920
  };
882
- declare function listPhases(httpClient: HttpClient): (workflowId: string, options?: ListPhasesOptions) => Promise<ListPhasesResponse & ListPhasesResponseNonNullableFields>;
883
- declare function getPhase(httpClient: HttpClient): (_id: string) => Promise<Phase$1 & {
921
+ declare function listPhases(httpClient: HttpClient$1): (workflowId: string, options?: ListPhasesOptions) => Promise<ListPhasesResponse & ListPhasesResponseNonNullableFields>;
922
+ declare function getPhase(httpClient: HttpClient$1): (_id: string) => Promise<Phase$1 & {
884
923
  cardsList?: {
885
924
  total: number;
886
925
  cards: {
@@ -895,10 +934,10 @@ declare function getPhase(httpClient: HttpClient): (_id: string) => Promise<Phas
895
934
  }[];
896
935
  } | undefined;
897
936
  }>;
898
- declare function updatePhase(httpClient: HttpClient): (_id: string, phase: PhaseInfo$1) => Promise<void>;
899
- declare function createPhase(httpClient: HttpClient): (workflowId: string, phase: PhaseInfo$1, options?: CreatePhaseOptions) => Promise<CreatePhaseResponse>;
900
- declare function deletePhase(httpClient: HttpClient): (_id: string) => Promise<void>;
901
- declare function movePhase(httpClient: HttpClient): (identifiers: MovePhaseIdentifiers, newPosition: number | null) => Promise<void>;
937
+ declare function updatePhase(httpClient: HttpClient$1): (_id: string, phase: PhaseInfo$1) => Promise<void>;
938
+ declare function createPhase(httpClient: HttpClient$1): (workflowId: string, phase: PhaseInfo$1, options?: CreatePhaseOptions) => Promise<CreatePhaseResponse>;
939
+ declare function deletePhase(httpClient: HttpClient$1): (_id: string) => Promise<void>;
940
+ declare function movePhase(httpClient: HttpClient$1): (identifiers: MovePhaseIdentifiers, newPosition: number | null) => Promise<void>;
902
941
 
903
942
  type index_d$1_CreatePhaseOptions = CreatePhaseOptions;
904
943
  type index_d$1_CreatePhaseRequest = CreatePhaseRequest;
@@ -1286,6 +1325,37 @@ interface ListWorkflowsOptions {
1286
1325
  sort?: string[];
1287
1326
  }
1288
1327
 
1328
+ interface HttpClient {
1329
+ request<TResponse, TData = any>(req: RequestOptionsFactory<TResponse, TData>): Promise<HttpResponse<TResponse>>;
1330
+ fetchWithAuth: (url: string | URL, init?: RequestInit) => Promise<Response>;
1331
+ }
1332
+ type RequestOptionsFactory<TResponse = any, TData = any> = (context: any) => RequestOptions<TResponse, TData>;
1333
+ type HttpResponse<T = any> = {
1334
+ data: T;
1335
+ status: number;
1336
+ statusText: string;
1337
+ headers: any;
1338
+ request?: any;
1339
+ };
1340
+ type RequestOptions<_TResponse = any, Data = any> = {
1341
+ method: 'POST' | 'GET' | 'PUT' | 'DELETE' | 'PATCH' | 'HEAD' | 'OPTIONS';
1342
+ url: string;
1343
+ data?: Data;
1344
+ params?: URLSearchParams;
1345
+ } & APIMetadata;
1346
+ type APIMetadata = {
1347
+ methodFqn?: string;
1348
+ entityFqdn?: string;
1349
+ packageName?: string;
1350
+ };
1351
+
1352
+ declare global {
1353
+ // eslint-disable-next-line @typescript-eslint/consistent-type-definitions -- It has to be an `interface` so that it can be merged.
1354
+ interface SymbolConstructor {
1355
+ readonly observable: symbol;
1356
+ }
1357
+ }
1358
+
1289
1359
  declare const __metadata: {
1290
1360
  PACKAGE_NAME: string;
1291
1361
  };