@palmetto/dispatch-sdk 0.2.1 → 0.3.1
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/dist/__generated__/schema.d.ts +154 -107
- package/dist/client.d.ts +28 -24
- package/dist/client.js +21 -7
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
|
@@ -175,6 +175,23 @@ export interface paths {
|
|
|
175
175
|
patch?: never;
|
|
176
176
|
trace?: never;
|
|
177
177
|
};
|
|
178
|
+
"/api/dispatches/{id}": {
|
|
179
|
+
parameters: {
|
|
180
|
+
query?: never;
|
|
181
|
+
header?: never;
|
|
182
|
+
path?: never;
|
|
183
|
+
cookie?: never;
|
|
184
|
+
};
|
|
185
|
+
/** Find Dispatch By ID */
|
|
186
|
+
get: operations["DispatchesController_findOne"];
|
|
187
|
+
put?: never;
|
|
188
|
+
post?: never;
|
|
189
|
+
delete?: never;
|
|
190
|
+
options?: never;
|
|
191
|
+
head?: never;
|
|
192
|
+
patch?: never;
|
|
193
|
+
trace?: never;
|
|
194
|
+
};
|
|
178
195
|
"/api/dispatches/{id}/status": {
|
|
179
196
|
parameters: {
|
|
180
197
|
query?: never;
|
|
@@ -249,6 +266,7 @@ export interface components {
|
|
|
249
266
|
totalPages: number;
|
|
250
267
|
};
|
|
251
268
|
ProjectDto: {
|
|
269
|
+
id: string;
|
|
252
270
|
account: {
|
|
253
271
|
/** @example acc_12345 */
|
|
254
272
|
id: string;
|
|
@@ -292,24 +310,26 @@ export interface components {
|
|
|
292
310
|
systemSize: number;
|
|
293
311
|
/** @example 12000 */
|
|
294
312
|
firstYearProduction: number;
|
|
295
|
-
/** @example 5 */
|
|
296
|
-
batterySize?: number;
|
|
297
313
|
};
|
|
298
314
|
pricing: {
|
|
299
315
|
/** @example 3.2 */
|
|
300
316
|
ppw: number;
|
|
301
317
|
};
|
|
318
|
+
storage?: {
|
|
319
|
+
/** @example 5 */
|
|
320
|
+
capacity: number;
|
|
321
|
+
};
|
|
302
322
|
utility: {
|
|
303
323
|
/** @example 12345 */
|
|
304
324
|
id: string;
|
|
305
325
|
};
|
|
306
326
|
/**
|
|
307
327
|
* @example [
|
|
308
|
-
* "
|
|
309
|
-
* "
|
|
328
|
+
* "SOLAR",
|
|
329
|
+
* "STORAGE"
|
|
310
330
|
* ]
|
|
311
331
|
*/
|
|
312
|
-
productTypes: ("
|
|
332
|
+
productTypes: ("SOLAR" | "STORAGE")[];
|
|
313
333
|
/** @constant */
|
|
314
334
|
isServiceable?: false;
|
|
315
335
|
meta: {
|
|
@@ -335,7 +355,6 @@ export interface components {
|
|
|
335
355
|
deletedAt?: string;
|
|
336
356
|
deletedBy?: string;
|
|
337
357
|
};
|
|
338
|
-
id: string;
|
|
339
358
|
};
|
|
340
359
|
BadRequestErrorDto: {
|
|
341
360
|
/**
|
|
@@ -426,24 +445,26 @@ export interface components {
|
|
|
426
445
|
systemSize: number;
|
|
427
446
|
/** @example 12000 */
|
|
428
447
|
firstYearProduction: number;
|
|
429
|
-
/** @example 5 */
|
|
430
|
-
batterySize?: number;
|
|
431
448
|
};
|
|
432
449
|
pricing: {
|
|
433
450
|
/** @example 3.2 */
|
|
434
451
|
ppw: number;
|
|
435
452
|
};
|
|
453
|
+
storage?: {
|
|
454
|
+
/** @example 5 */
|
|
455
|
+
capacity: number;
|
|
456
|
+
};
|
|
436
457
|
utility: {
|
|
437
458
|
/** @example 12345 */
|
|
438
459
|
id: string;
|
|
439
460
|
};
|
|
440
461
|
/**
|
|
441
462
|
* @example [
|
|
442
|
-
* "
|
|
443
|
-
* "
|
|
463
|
+
* "SOLAR",
|
|
464
|
+
* "STORAGE"
|
|
444
465
|
* ]
|
|
445
466
|
*/
|
|
446
|
-
productTypes: ("
|
|
467
|
+
productTypes: ("SOLAR" | "STORAGE")[];
|
|
447
468
|
};
|
|
448
469
|
ConflictErrorDto: {
|
|
449
470
|
/**
|
|
@@ -496,24 +517,26 @@ export interface components {
|
|
|
496
517
|
systemSize: number;
|
|
497
518
|
/** @example 12000 */
|
|
498
519
|
firstYearProduction: number;
|
|
499
|
-
/** @example 5 */
|
|
500
|
-
batterySize?: number;
|
|
501
520
|
};
|
|
502
521
|
pricing?: {
|
|
503
522
|
/** @example 3.2 */
|
|
504
523
|
ppw: number;
|
|
505
524
|
};
|
|
525
|
+
storage?: {
|
|
526
|
+
/** @example 5 */
|
|
527
|
+
capacity: number;
|
|
528
|
+
};
|
|
506
529
|
utility?: {
|
|
507
530
|
/** @example 12345 */
|
|
508
531
|
id: string;
|
|
509
532
|
};
|
|
510
533
|
/**
|
|
511
534
|
* @example [
|
|
512
|
-
* "
|
|
513
|
-
* "
|
|
535
|
+
* "SOLAR",
|
|
536
|
+
* "STORAGE"
|
|
514
537
|
* ]
|
|
515
538
|
*/
|
|
516
|
-
productTypes?: ("
|
|
539
|
+
productTypes?: ("SOLAR" | "STORAGE")[];
|
|
517
540
|
/** @constant */
|
|
518
541
|
isServiceable?: false;
|
|
519
542
|
};
|
|
@@ -563,33 +586,27 @@ export interface components {
|
|
|
563
586
|
};
|
|
564
587
|
};
|
|
565
588
|
aspects: {
|
|
566
|
-
/** @
|
|
567
|
-
minPpw
|
|
589
|
+
/** @example 2.5 */
|
|
590
|
+
minPpw: number;
|
|
568
591
|
/**
|
|
569
592
|
* @example [
|
|
570
|
-
* "
|
|
571
|
-
* "
|
|
593
|
+
* "SOLAR",
|
|
594
|
+
* "STORAGE"
|
|
572
595
|
* ]
|
|
573
596
|
*/
|
|
574
|
-
supportedProducts: ("
|
|
597
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
575
598
|
/**
|
|
576
|
-
* @example
|
|
599
|
+
* @example ELITE
|
|
577
600
|
* @enum {string}
|
|
578
601
|
*/
|
|
579
|
-
tier: "
|
|
602
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
580
603
|
};
|
|
581
604
|
status: {
|
|
582
|
-
/**
|
|
583
|
-
|
|
584
|
-
* @constant
|
|
585
|
-
*/
|
|
586
|
-
code: "active";
|
|
605
|
+
/** @constant */
|
|
606
|
+
code: "ACTIVE";
|
|
587
607
|
} | {
|
|
588
|
-
/**
|
|
589
|
-
|
|
590
|
-
* @constant
|
|
591
|
-
*/
|
|
592
|
-
code: "inactive";
|
|
608
|
+
/** @constant */
|
|
609
|
+
code: "INACTIVE";
|
|
593
610
|
};
|
|
594
611
|
serviceAreas: {
|
|
595
612
|
point: {
|
|
@@ -624,6 +641,7 @@ export interface components {
|
|
|
624
641
|
}[];
|
|
625
642
|
};
|
|
626
643
|
SupplierDto: {
|
|
644
|
+
id: string;
|
|
627
645
|
account: {
|
|
628
646
|
/** @example acc_12345 */
|
|
629
647
|
id: string;
|
|
@@ -658,31 +676,25 @@ export interface components {
|
|
|
658
676
|
minPpw: number;
|
|
659
677
|
/**
|
|
660
678
|
* @example [
|
|
661
|
-
* "
|
|
662
|
-
* "
|
|
679
|
+
* "SOLAR",
|
|
680
|
+
* "STORAGE"
|
|
663
681
|
* ]
|
|
664
682
|
*/
|
|
665
|
-
supportedProducts: ("
|
|
683
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
666
684
|
/**
|
|
667
|
-
* @example
|
|
685
|
+
* @example ELITE
|
|
668
686
|
* @enum {string}
|
|
669
687
|
*/
|
|
670
|
-
tier: "
|
|
688
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
671
689
|
};
|
|
672
690
|
status: {
|
|
673
|
-
/**
|
|
674
|
-
|
|
675
|
-
* @constant
|
|
676
|
-
*/
|
|
677
|
-
code: "active";
|
|
691
|
+
/** @constant */
|
|
692
|
+
code: "ACTIVE";
|
|
678
693
|
/** Format: date-time */
|
|
679
694
|
statusUpdatedAt: string;
|
|
680
695
|
} | {
|
|
681
|
-
/**
|
|
682
|
-
|
|
683
|
-
* @constant
|
|
684
|
-
*/
|
|
685
|
-
code: "inactive";
|
|
696
|
+
/** @constant */
|
|
697
|
+
code: "INACTIVE";
|
|
686
698
|
/** Format: date-time */
|
|
687
699
|
statusUpdatedAt: string;
|
|
688
700
|
};
|
|
@@ -740,7 +752,6 @@ export interface components {
|
|
|
740
752
|
deletedAt?: string;
|
|
741
753
|
deletedBy?: string;
|
|
742
754
|
};
|
|
743
|
-
id: string;
|
|
744
755
|
};
|
|
745
756
|
UpdateSupplierDto: {
|
|
746
757
|
name?: string;
|
|
@@ -765,17 +776,11 @@ export interface components {
|
|
|
765
776
|
};
|
|
766
777
|
UpdateSupplierStatusDto: {
|
|
767
778
|
status: {
|
|
768
|
-
/**
|
|
769
|
-
|
|
770
|
-
* @constant
|
|
771
|
-
*/
|
|
772
|
-
code: "active";
|
|
779
|
+
/** @constant */
|
|
780
|
+
code: "ACTIVE";
|
|
773
781
|
} | {
|
|
774
|
-
/**
|
|
775
|
-
|
|
776
|
-
* @constant
|
|
777
|
-
*/
|
|
778
|
-
code: "inactive";
|
|
782
|
+
/** @constant */
|
|
783
|
+
code: "INACTIVE";
|
|
779
784
|
};
|
|
780
785
|
};
|
|
781
786
|
CreateServiceAreaDto: {
|
|
@@ -838,45 +843,34 @@ export interface components {
|
|
|
838
843
|
projectId: string;
|
|
839
844
|
};
|
|
840
845
|
DispatchDto: {
|
|
846
|
+
id: string;
|
|
841
847
|
/** @example 507f1f77bcf86cd799439011 */
|
|
842
848
|
projectId: string;
|
|
843
849
|
/** @example 507f1f77bcf86cd799439012 */
|
|
844
850
|
supplierId: string;
|
|
845
851
|
status: {
|
|
846
|
-
/**
|
|
847
|
-
|
|
848
|
-
* @constant
|
|
849
|
-
*/
|
|
850
|
-
code: "pending";
|
|
852
|
+
/** @constant */
|
|
853
|
+
code: "PENDING";
|
|
851
854
|
/** Format: date-time */
|
|
852
855
|
statusUpdatedAt: string;
|
|
853
856
|
} | {
|
|
854
|
-
/**
|
|
855
|
-
|
|
856
|
-
* @constant
|
|
857
|
-
*/
|
|
858
|
-
code: "accepted";
|
|
857
|
+
/** @constant */
|
|
858
|
+
code: "ACCEPTED";
|
|
859
859
|
/** Format: date-time */
|
|
860
860
|
statusUpdatedAt: string;
|
|
861
861
|
} | {
|
|
862
|
+
/** @constant */
|
|
863
|
+
code: "REJECTED";
|
|
862
864
|
/**
|
|
863
|
-
* @example
|
|
864
|
-
* @constant
|
|
865
|
-
*/
|
|
866
|
-
code: "rejected";
|
|
867
|
-
/**
|
|
868
|
-
* @example capacity
|
|
865
|
+
* @example CAPACITY
|
|
869
866
|
* @enum {string}
|
|
870
867
|
*/
|
|
871
|
-
reason: "
|
|
868
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
872
869
|
/** Format: date-time */
|
|
873
870
|
statusUpdatedAt: string;
|
|
874
871
|
} | {
|
|
875
|
-
/**
|
|
876
|
-
|
|
877
|
-
* @constant
|
|
878
|
-
*/
|
|
879
|
-
code: "withdrawn";
|
|
872
|
+
/** @constant */
|
|
873
|
+
code: "WITHDRAWN";
|
|
880
874
|
/** Format: date-time */
|
|
881
875
|
statusUpdatedAt: string;
|
|
882
876
|
};
|
|
@@ -915,38 +909,25 @@ export interface components {
|
|
|
915
909
|
deletedAt?: string;
|
|
916
910
|
deletedBy?: string;
|
|
917
911
|
};
|
|
918
|
-
id: string;
|
|
919
912
|
};
|
|
920
913
|
UpdateDispatchStatusDto: {
|
|
921
914
|
status: {
|
|
922
|
-
/**
|
|
923
|
-
|
|
924
|
-
* @constant
|
|
925
|
-
*/
|
|
926
|
-
code: "pending";
|
|
915
|
+
/** @constant */
|
|
916
|
+
code: "PENDING";
|
|
927
917
|
} | {
|
|
928
|
-
/**
|
|
929
|
-
|
|
930
|
-
* @constant
|
|
931
|
-
*/
|
|
932
|
-
code: "accepted";
|
|
918
|
+
/** @constant */
|
|
919
|
+
code: "ACCEPTED";
|
|
933
920
|
} | {
|
|
921
|
+
/** @constant */
|
|
922
|
+
code: "REJECTED";
|
|
934
923
|
/**
|
|
935
|
-
* @example
|
|
936
|
-
* @constant
|
|
937
|
-
*/
|
|
938
|
-
code: "rejected";
|
|
939
|
-
/**
|
|
940
|
-
* @example capacity
|
|
924
|
+
* @example CAPACITY
|
|
941
925
|
* @enum {string}
|
|
942
926
|
*/
|
|
943
|
-
reason: "
|
|
927
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
944
928
|
} | {
|
|
945
|
-
/**
|
|
946
|
-
|
|
947
|
-
* @constant
|
|
948
|
-
*/
|
|
949
|
-
code: "withdrawn";
|
|
929
|
+
/** @constant */
|
|
930
|
+
code: "WITHDRAWN";
|
|
950
931
|
};
|
|
951
932
|
};
|
|
952
933
|
};
|
|
@@ -1195,10 +1176,10 @@ export interface operations {
|
|
|
1195
1176
|
limit?: number;
|
|
1196
1177
|
"account.id"?: string;
|
|
1197
1178
|
name?: string;
|
|
1198
|
-
"status.code"?: "
|
|
1179
|
+
"status.code"?: "ACTIVE" | "INACTIVE";
|
|
1199
1180
|
"aspects.minPpw"?: number;
|
|
1200
|
-
"aspects.supportedProducts"?: "
|
|
1201
|
-
"aspects.tier"?: "
|
|
1181
|
+
"aspects.supportedProducts"?: "SOLAR" | "STORAGE";
|
|
1182
|
+
"aspects.tier"?: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
1202
1183
|
"regions.region"?: string;
|
|
1203
1184
|
"regions.capacity"?: number;
|
|
1204
1185
|
};
|
|
@@ -2075,6 +2056,72 @@ export interface operations {
|
|
|
2075
2056
|
};
|
|
2076
2057
|
};
|
|
2077
2058
|
};
|
|
2059
|
+
DispatchesController_findOne: {
|
|
2060
|
+
parameters: {
|
|
2061
|
+
query?: never;
|
|
2062
|
+
header?: never;
|
|
2063
|
+
path: {
|
|
2064
|
+
id: string;
|
|
2065
|
+
};
|
|
2066
|
+
cookie?: never;
|
|
2067
|
+
};
|
|
2068
|
+
requestBody?: never;
|
|
2069
|
+
responses: {
|
|
2070
|
+
200: {
|
|
2071
|
+
headers: {
|
|
2072
|
+
[name: string]: unknown;
|
|
2073
|
+
};
|
|
2074
|
+
content: {
|
|
2075
|
+
"application/json": components["schemas"]["DispatchDto"];
|
|
2076
|
+
};
|
|
2077
|
+
};
|
|
2078
|
+
/** @description When the ID is invalid */
|
|
2079
|
+
400: {
|
|
2080
|
+
headers: {
|
|
2081
|
+
[name: string]: unknown;
|
|
2082
|
+
};
|
|
2083
|
+
content: {
|
|
2084
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
2085
|
+
};
|
|
2086
|
+
};
|
|
2087
|
+
/** @description When authentication fails */
|
|
2088
|
+
401: {
|
|
2089
|
+
headers: {
|
|
2090
|
+
[name: string]: unknown;
|
|
2091
|
+
};
|
|
2092
|
+
content: {
|
|
2093
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
2094
|
+
};
|
|
2095
|
+
};
|
|
2096
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
2097
|
+
403: {
|
|
2098
|
+
headers: {
|
|
2099
|
+
[name: string]: unknown;
|
|
2100
|
+
};
|
|
2101
|
+
content: {
|
|
2102
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2103
|
+
};
|
|
2104
|
+
};
|
|
2105
|
+
/** @description When the dispatch is not found */
|
|
2106
|
+
404: {
|
|
2107
|
+
headers: {
|
|
2108
|
+
[name: string]: unknown;
|
|
2109
|
+
};
|
|
2110
|
+
content: {
|
|
2111
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
2112
|
+
};
|
|
2113
|
+
};
|
|
2114
|
+
/** @description When the request is valid, but something goes wrong on the server */
|
|
2115
|
+
500: {
|
|
2116
|
+
headers: {
|
|
2117
|
+
[name: string]: unknown;
|
|
2118
|
+
};
|
|
2119
|
+
content: {
|
|
2120
|
+
"application/json": components["schemas"]["InternalServerErrorDto"];
|
|
2121
|
+
};
|
|
2122
|
+
};
|
|
2123
|
+
};
|
|
2124
|
+
};
|
|
2078
2125
|
DispatchesController_updateStatus: {
|
|
2079
2126
|
parameters: {
|
|
2080
2127
|
query?: never;
|
package/dist/client.d.ts
CHANGED
|
@@ -5,48 +5,49 @@ export type CreateDispatchClientInput = Omit<CreateSdkClientInput, "sdkVersion">
|
|
|
5
5
|
export declare class DispatchClient extends BaseSdkClient<paths> {
|
|
6
6
|
constructor(input: CreateDispatchClientInput);
|
|
7
7
|
healthCheck(_input?: HealthCheckInput, options?: RequestOptions): Promise<HealthCheckResult>;
|
|
8
|
-
|
|
8
|
+
getSuppliers(input?: GetSuppliersInput, options?: RequestOptions): Promise<GetSuppliersResult>;
|
|
9
9
|
createSupplier(input: CreateSupplierInput, options?: RequestOptions): Promise<CreateSupplierResult>;
|
|
10
|
-
|
|
10
|
+
getSupplier({ id }: GetSupplierInput, options?: RequestOptions): Promise<GetSupplierResult>;
|
|
11
11
|
updateSupplier({ id, ...input }: UpdateSupplierInput, options?: RequestOptions): Promise<UpdateSupplierResult>;
|
|
12
12
|
updateSupplierStatus({ id, ...input }: UpdateSupplierStatusInput, options?: RequestOptions): Promise<UpdateSupplierStatusResult>;
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
getSupplierServiceAreas({ id }: GetSupplierServiceAreasInput, options?: RequestOptions): Promise<GetSupplierServiceAreasResult>;
|
|
14
|
+
createSupplierServiceArea({ id, ...input }: CreateSupplierServiceAreaInput, options?: RequestOptions): Promise<CreateSupplierServiceAreaResult>;
|
|
15
15
|
removeSupplierServiceArea(input: RemoveSupplierServiceAreaInput, options?: RequestOptions): Promise<RemoveSupplierServiceAreaResult>;
|
|
16
16
|
updateSupplierServiceArea({ id, serviceAreaId, ...input }: UpdateSupplierServiceAreaInput, options?: RequestOptions): Promise<UpdateSupplierServiceAreaResult>;
|
|
17
17
|
upsertSupplierRegion({ id, region, ...input }: UpsertSupplierRegionInput, options?: RequestOptions): Promise<UpsertSupplierRegionResult>;
|
|
18
18
|
removeSupplierRegion(input: RemoveSupplierRegionInput, options?: RequestOptions): Promise<RemoveSupplierRegionResult>;
|
|
19
|
-
|
|
19
|
+
getProjects(input?: GetProjectsInput, options?: RequestOptions): Promise<GetProjectsResult>;
|
|
20
20
|
createProject(input: CreateProjectInput, options?: RequestOptions): Promise<CreateProjectResult>;
|
|
21
21
|
updateProject({ id, ...input }: UpdateProjectInput, options?: RequestOptions): Promise<UpdateProjectResult>;
|
|
22
22
|
createDispatch(input: CreateDispatchInput, options?: RequestOptions): Promise<CreateDispatchResult>;
|
|
23
|
-
|
|
23
|
+
getDispatches(input?: GetDispatchesInput, options?: RequestOptions): Promise<GetDispatchesResult>;
|
|
24
|
+
getDispatch({ id }: GetDispatchInput, options?: RequestOptions): Promise<GetDispatchResult>;
|
|
24
25
|
updateDispatchStatus({ id, ...input }: UpdateDispatchStatusInput, options?: RequestOptions): Promise<UpdateDispatchStatusResult>;
|
|
25
26
|
}
|
|
26
27
|
export type HealthCheckInput = ApiInput<paths["/api/health"]["get"]>;
|
|
27
28
|
export type HealthCheckResult = SdkResult<paths["/api/health"]["get"]>;
|
|
28
29
|
export type HealthCheckResponse = ExtractResultData<HealthCheckResult>;
|
|
29
|
-
export type
|
|
30
|
-
export type
|
|
31
|
-
export type
|
|
30
|
+
export type GetSuppliersInput = ApiInput<paths["/api/suppliers"]["get"]>;
|
|
31
|
+
export type GetSuppliersResult = SdkResult<paths["/api/suppliers"]["get"]>;
|
|
32
|
+
export type GetSuppliersResponse = ExtractResultData<GetSuppliersResult>;
|
|
32
33
|
export type CreateSupplierInput = ApiInput<paths["/api/suppliers"]["post"]>;
|
|
33
34
|
export type CreateSupplierResult = SdkResult<paths["/api/suppliers"]["post"]>;
|
|
34
35
|
export type CreateSupplierResponse = ExtractResultData<CreateSupplierResult>;
|
|
35
|
-
export type
|
|
36
|
-
export type
|
|
37
|
-
export type
|
|
36
|
+
export type GetSupplierInput = ApiInput<paths["/api/suppliers/{id}"]["get"]>;
|
|
37
|
+
export type GetSupplierResult = SdkResult<paths["/api/suppliers/{id}"]["get"]>;
|
|
38
|
+
export type GetSupplierResponse = ExtractResultData<GetSupplierResult>;
|
|
38
39
|
export type UpdateSupplierInput = ApiInput<paths["/api/suppliers/{id}"]["patch"]>;
|
|
39
40
|
export type UpdateSupplierResult = SdkResult<paths["/api/suppliers/{id}"]["patch"]>;
|
|
40
41
|
export type UpdateSupplierResponse = ExtractResultData<UpdateSupplierResult>;
|
|
41
42
|
export type UpdateSupplierStatusInput = ApiInput<paths["/api/suppliers/{id}/status"]["patch"]>;
|
|
42
43
|
export type UpdateSupplierStatusResult = SdkResult<paths["/api/suppliers/{id}/status"]["patch"]>;
|
|
43
44
|
export type UpdateSupplierStatusResponse = ExtractResultData<UpdateSupplierStatusResult>;
|
|
44
|
-
export type
|
|
45
|
-
export type
|
|
46
|
-
export type
|
|
47
|
-
export type
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
45
|
+
export type GetSupplierServiceAreasInput = ApiInput<paths["/api/suppliers/{id}/service-areas"]["get"]>;
|
|
46
|
+
export type GetSupplierServiceAreasResult = SdkResult<paths["/api/suppliers/{id}/service-areas"]["get"]>;
|
|
47
|
+
export type GetSupplierServiceAreasResponse = ExtractResultData<GetSupplierServiceAreasResult>;
|
|
48
|
+
export type CreateSupplierServiceAreaInput = ApiInput<paths["/api/suppliers/{id}/service-areas"]["post"]>;
|
|
49
|
+
export type CreateSupplierServiceAreaResult = SdkResult<paths["/api/suppliers/{id}/service-areas"]["post"]>;
|
|
50
|
+
export type CreateSupplierServiceAreaResponse = ExtractResultData<CreateSupplierServiceAreaResult>;
|
|
50
51
|
export type RemoveSupplierServiceAreaInput = ApiInput<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["delete"]>;
|
|
51
52
|
export type RemoveSupplierServiceAreaResult = SdkResult<paths["/api/suppliers/{id}/service-areas/{serviceAreaId}"]["delete"]>;
|
|
52
53
|
export type RemoveSupplierServiceAreaResponse = ExtractResultData<RemoveSupplierServiceAreaResult>;
|
|
@@ -59,9 +60,9 @@ export type UpsertSupplierRegionResponse = ExtractResultData<UpsertSupplierRegio
|
|
|
59
60
|
export type RemoveSupplierRegionInput = ApiInput<paths["/api/suppliers/{id}/regions/{region}"]["delete"]>;
|
|
60
61
|
export type RemoveSupplierRegionResult = SdkResult<paths["/api/suppliers/{id}/regions/{region}"]["delete"]>;
|
|
61
62
|
export type RemoveSupplierRegionResponse = ExtractResultData<RemoveSupplierRegionResult>;
|
|
62
|
-
export type
|
|
63
|
-
export type
|
|
64
|
-
export type
|
|
63
|
+
export type GetProjectsInput = ApiInput<paths["/api/projects"]["get"]>;
|
|
64
|
+
export type GetProjectsResult = SdkResult<paths["/api/projects"]["get"]>;
|
|
65
|
+
export type GetProjectsResponse = ExtractResultData<GetProjectsResult>;
|
|
65
66
|
export type CreateProjectInput = ApiInput<paths["/api/projects"]["post"]>;
|
|
66
67
|
export type CreateProjectResult = SdkResult<paths["/api/projects"]["post"]>;
|
|
67
68
|
export type CreateProjectResponse = ExtractResultData<CreateProjectResult>;
|
|
@@ -71,9 +72,12 @@ export type UpdateProjectResponse = ExtractResultData<UpdateProjectResult>;
|
|
|
71
72
|
export type CreateDispatchInput = ApiInput<paths["/api/dispatches"]["post"]>;
|
|
72
73
|
export type CreateDispatchResult = SdkResult<paths["/api/dispatches"]["post"]>;
|
|
73
74
|
export type CreateDispatchResponse = ExtractResultData<CreateDispatchResult>;
|
|
74
|
-
export type
|
|
75
|
-
export type
|
|
76
|
-
export type
|
|
75
|
+
export type GetDispatchesInput = ApiInput<paths["/api/dispatches"]["get"]>;
|
|
76
|
+
export type GetDispatchesResult = SdkResult<paths["/api/dispatches"]["get"]>;
|
|
77
|
+
export type GetDispatchesResponse = ExtractResultData<GetDispatchesResult>;
|
|
78
|
+
export type GetDispatchInput = paths["/api/dispatches/{id}"]["get"]["parameters"]["path"];
|
|
79
|
+
export type GetDispatchResult = SdkResult<paths["/api/dispatches/{id}"]["get"]>;
|
|
80
|
+
export type GetDispatchResponse = ExtractResultData<GetDispatchResult>;
|
|
77
81
|
export type UpdateDispatchStatusInput = ApiInput<paths["/api/dispatches/{id}/status"]["patch"]>;
|
|
78
82
|
export type UpdateDispatchStatusResult = SdkResult<paths["/api/dispatches/{id}/status"]["patch"]>;
|
|
79
83
|
export type UpdateDispatchStatusResponse = ExtractResultData<UpdateDispatchStatusResult>;
|
package/dist/client.js
CHANGED
|
@@ -23,7 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
exports.DispatchClient = void 0;
|
|
24
24
|
const base_sdk_client_1 = require("@palmetto/base-sdk-client");
|
|
25
25
|
const result_1 = require("@palmetto/result");
|
|
26
|
-
const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.
|
|
26
|
+
const SDK_VERSION_SLUG = "palmetto-dispatch-sdk/0.3.0";
|
|
27
27
|
class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
28
28
|
constructor(input) {
|
|
29
29
|
super(Object.assign(Object.assign({}, input), { sdkVersion: SDK_VERSION_SLUG }));
|
|
@@ -39,7 +39,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
39
39
|
return this.handleErrorResponse(error, response);
|
|
40
40
|
});
|
|
41
41
|
}
|
|
42
|
-
|
|
42
|
+
getSuppliers(input, options) {
|
|
43
43
|
return __awaiter(this, void 0, void 0, function* () {
|
|
44
44
|
const { data, error, response } = yield this.client.GET("/api/suppliers", {
|
|
45
45
|
params: {
|
|
@@ -65,7 +65,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
65
65
|
return this.handleErrorResponse(error, response);
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
|
-
|
|
68
|
+
getSupplier(_a, options_1) {
|
|
69
69
|
return __awaiter(this, arguments, void 0, function* ({ id }, options) {
|
|
70
70
|
const { data, error, response } = yield this.client.GET("/api/suppliers/{id}", {
|
|
71
71
|
params: {
|
|
@@ -111,7 +111,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
111
111
|
return this.handleErrorResponse(error, response);
|
|
112
112
|
});
|
|
113
113
|
}
|
|
114
|
-
|
|
114
|
+
getSupplierServiceAreas(_a, options_1) {
|
|
115
115
|
return __awaiter(this, arguments, void 0, function* ({ id }, options) {
|
|
116
116
|
const { data, error, response } = yield this.client.GET("/api/suppliers/{id}/service-areas", {
|
|
117
117
|
params: {
|
|
@@ -125,7 +125,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
125
125
|
return this.handleErrorResponse(error, response);
|
|
126
126
|
});
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
createSupplierServiceArea(_a, options) {
|
|
129
129
|
return __awaiter(this, void 0, void 0, function* () {
|
|
130
130
|
var { id } = _a, input = __rest(_a, ["id"]);
|
|
131
131
|
const { data, error, response } = yield this.client.POST("/api/suppliers/{id}/service-areas", {
|
|
@@ -201,7 +201,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
201
201
|
return this.handleErrorResponse(error, response);
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
|
-
|
|
204
|
+
getProjects(input, options) {
|
|
205
205
|
return __awaiter(this, void 0, void 0, function* () {
|
|
206
206
|
const { data, error, response } = yield this.client.GET("/api/projects", {
|
|
207
207
|
params: {
|
|
@@ -255,7 +255,7 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
255
255
|
return this.handleErrorResponse(error, response);
|
|
256
256
|
});
|
|
257
257
|
}
|
|
258
|
-
|
|
258
|
+
getDispatches(input, options) {
|
|
259
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
260
260
|
const { data, error, response } = yield this.client.GET("/api/dispatches", {
|
|
261
261
|
params: {
|
|
@@ -269,6 +269,20 @@ class DispatchClient extends base_sdk_client_1.BaseSdkClient {
|
|
|
269
269
|
return this.handleErrorResponse(error, response);
|
|
270
270
|
});
|
|
271
271
|
}
|
|
272
|
+
getDispatch(_a, options_1) {
|
|
273
|
+
return __awaiter(this, arguments, void 0, function* ({ id }, options) {
|
|
274
|
+
const { data, error, response } = yield this.client.GET("/api/dispatches/{id}", {
|
|
275
|
+
params: {
|
|
276
|
+
path: { id },
|
|
277
|
+
},
|
|
278
|
+
headers: this.generateHeaders(options),
|
|
279
|
+
});
|
|
280
|
+
if (data) {
|
|
281
|
+
return (0, result_1.Ok)(data);
|
|
282
|
+
}
|
|
283
|
+
return this.handleErrorResponse(error, response);
|
|
284
|
+
});
|
|
285
|
+
}
|
|
272
286
|
updateDispatchStatus(_a, options) {
|
|
273
287
|
return __awaiter(this, void 0, void 0, function* () {
|
|
274
288
|
var { id } = _a, input = __rest(_a, ["id"]);
|
package/dist/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAMmC;AACnC,6CAAyD;AAIzD,MAAM,gBAAgB,GAAG,6BAA6B,CAAC;AAOvD,MAAa,cAAe,SAAQ,+BAAoB;IACtD,YAAY,KAAgC;QAC1C,KAAK,iCAAM,KAAK,KAAE,UAAU,EAAE,gBAAgB,IAAG,CAAC;IACpD,CAAC;IAEK,WAAW,CACf,MAAyB,EACzB,OAAwB;;YAExB,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,aAAa,EAAE;gBACrE,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;aACvC,CAAC,CAAC;YAEH,IAAI,IAAI,EAAE,CAAC;gBACT,OAAO,IAAA,WAAE,EAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,OAAO,IAAI,CAAC,mBAAmB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QACnD,CAAC;KAAA;IAEK,
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../src/client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+DAMmC;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