@palmetto/dispatch-sdk 0.2.0 → 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 -101
- package/dist/client.d.ts +28 -24
- package/dist/client.js +21 -7
- package/dist/client.js.map +1 -1
- package/package.json +6 -2
|
@@ -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;
|
|
@@ -297,17 +315,21 @@ export interface components {
|
|
|
297
315
|
/** @example 3.2 */
|
|
298
316
|
ppw: number;
|
|
299
317
|
};
|
|
318
|
+
storage?: {
|
|
319
|
+
/** @example 5 */
|
|
320
|
+
capacity: number;
|
|
321
|
+
};
|
|
300
322
|
utility: {
|
|
301
323
|
/** @example 12345 */
|
|
302
324
|
id: string;
|
|
303
325
|
};
|
|
304
326
|
/**
|
|
305
327
|
* @example [
|
|
306
|
-
* "
|
|
307
|
-
* "
|
|
328
|
+
* "SOLAR",
|
|
329
|
+
* "STORAGE"
|
|
308
330
|
* ]
|
|
309
331
|
*/
|
|
310
|
-
productTypes: ("
|
|
332
|
+
productTypes: ("SOLAR" | "STORAGE")[];
|
|
311
333
|
/** @constant */
|
|
312
334
|
isServiceable?: false;
|
|
313
335
|
meta: {
|
|
@@ -333,7 +355,6 @@ export interface components {
|
|
|
333
355
|
deletedAt?: string;
|
|
334
356
|
deletedBy?: string;
|
|
335
357
|
};
|
|
336
|
-
id: string;
|
|
337
358
|
};
|
|
338
359
|
BadRequestErrorDto: {
|
|
339
360
|
/**
|
|
@@ -429,17 +450,21 @@ export interface components {
|
|
|
429
450
|
/** @example 3.2 */
|
|
430
451
|
ppw: number;
|
|
431
452
|
};
|
|
453
|
+
storage?: {
|
|
454
|
+
/** @example 5 */
|
|
455
|
+
capacity: number;
|
|
456
|
+
};
|
|
432
457
|
utility: {
|
|
433
458
|
/** @example 12345 */
|
|
434
459
|
id: string;
|
|
435
460
|
};
|
|
436
461
|
/**
|
|
437
462
|
* @example [
|
|
438
|
-
* "
|
|
439
|
-
* "
|
|
463
|
+
* "SOLAR",
|
|
464
|
+
* "STORAGE"
|
|
440
465
|
* ]
|
|
441
466
|
*/
|
|
442
|
-
productTypes: ("
|
|
467
|
+
productTypes: ("SOLAR" | "STORAGE")[];
|
|
443
468
|
};
|
|
444
469
|
ConflictErrorDto: {
|
|
445
470
|
/**
|
|
@@ -497,17 +522,21 @@ export interface components {
|
|
|
497
522
|
/** @example 3.2 */
|
|
498
523
|
ppw: number;
|
|
499
524
|
};
|
|
525
|
+
storage?: {
|
|
526
|
+
/** @example 5 */
|
|
527
|
+
capacity: number;
|
|
528
|
+
};
|
|
500
529
|
utility?: {
|
|
501
530
|
/** @example 12345 */
|
|
502
531
|
id: string;
|
|
503
532
|
};
|
|
504
533
|
/**
|
|
505
534
|
* @example [
|
|
506
|
-
* "
|
|
507
|
-
* "
|
|
535
|
+
* "SOLAR",
|
|
536
|
+
* "STORAGE"
|
|
508
537
|
* ]
|
|
509
538
|
*/
|
|
510
|
-
productTypes?: ("
|
|
539
|
+
productTypes?: ("SOLAR" | "STORAGE")[];
|
|
511
540
|
/** @constant */
|
|
512
541
|
isServiceable?: false;
|
|
513
542
|
};
|
|
@@ -557,33 +586,27 @@ export interface components {
|
|
|
557
586
|
};
|
|
558
587
|
};
|
|
559
588
|
aspects: {
|
|
560
|
-
/** @
|
|
561
|
-
minPpw
|
|
589
|
+
/** @example 2.5 */
|
|
590
|
+
minPpw: number;
|
|
562
591
|
/**
|
|
563
592
|
* @example [
|
|
564
|
-
* "
|
|
565
|
-
* "
|
|
593
|
+
* "SOLAR",
|
|
594
|
+
* "STORAGE"
|
|
566
595
|
* ]
|
|
567
596
|
*/
|
|
568
|
-
supportedProducts: ("
|
|
597
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
569
598
|
/**
|
|
570
|
-
* @example
|
|
599
|
+
* @example ELITE
|
|
571
600
|
* @enum {string}
|
|
572
601
|
*/
|
|
573
|
-
tier: "
|
|
602
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
574
603
|
};
|
|
575
604
|
status: {
|
|
576
|
-
/**
|
|
577
|
-
|
|
578
|
-
* @constant
|
|
579
|
-
*/
|
|
580
|
-
code: "active";
|
|
605
|
+
/** @constant */
|
|
606
|
+
code: "ACTIVE";
|
|
581
607
|
} | {
|
|
582
|
-
/**
|
|
583
|
-
|
|
584
|
-
* @constant
|
|
585
|
-
*/
|
|
586
|
-
code: "inactive";
|
|
608
|
+
/** @constant */
|
|
609
|
+
code: "INACTIVE";
|
|
587
610
|
};
|
|
588
611
|
serviceAreas: {
|
|
589
612
|
point: {
|
|
@@ -618,6 +641,7 @@ export interface components {
|
|
|
618
641
|
}[];
|
|
619
642
|
};
|
|
620
643
|
SupplierDto: {
|
|
644
|
+
id: string;
|
|
621
645
|
account: {
|
|
622
646
|
/** @example acc_12345 */
|
|
623
647
|
id: string;
|
|
@@ -652,31 +676,25 @@ export interface components {
|
|
|
652
676
|
minPpw: number;
|
|
653
677
|
/**
|
|
654
678
|
* @example [
|
|
655
|
-
* "
|
|
656
|
-
* "
|
|
679
|
+
* "SOLAR",
|
|
680
|
+
* "STORAGE"
|
|
657
681
|
* ]
|
|
658
682
|
*/
|
|
659
|
-
supportedProducts: ("
|
|
683
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
660
684
|
/**
|
|
661
|
-
* @example
|
|
685
|
+
* @example ELITE
|
|
662
686
|
* @enum {string}
|
|
663
687
|
*/
|
|
664
|
-
tier: "
|
|
688
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
665
689
|
};
|
|
666
690
|
status: {
|
|
667
|
-
/**
|
|
668
|
-
|
|
669
|
-
* @constant
|
|
670
|
-
*/
|
|
671
|
-
code: "active";
|
|
691
|
+
/** @constant */
|
|
692
|
+
code: "ACTIVE";
|
|
672
693
|
/** Format: date-time */
|
|
673
694
|
statusUpdatedAt: string;
|
|
674
695
|
} | {
|
|
675
|
-
/**
|
|
676
|
-
|
|
677
|
-
* @constant
|
|
678
|
-
*/
|
|
679
|
-
code: "inactive";
|
|
696
|
+
/** @constant */
|
|
697
|
+
code: "INACTIVE";
|
|
680
698
|
/** Format: date-time */
|
|
681
699
|
statusUpdatedAt: string;
|
|
682
700
|
};
|
|
@@ -734,7 +752,6 @@ export interface components {
|
|
|
734
752
|
deletedAt?: string;
|
|
735
753
|
deletedBy?: string;
|
|
736
754
|
};
|
|
737
|
-
id: string;
|
|
738
755
|
};
|
|
739
756
|
UpdateSupplierDto: {
|
|
740
757
|
name?: string;
|
|
@@ -759,17 +776,11 @@ export interface components {
|
|
|
759
776
|
};
|
|
760
777
|
UpdateSupplierStatusDto: {
|
|
761
778
|
status: {
|
|
762
|
-
/**
|
|
763
|
-
|
|
764
|
-
* @constant
|
|
765
|
-
*/
|
|
766
|
-
code: "active";
|
|
779
|
+
/** @constant */
|
|
780
|
+
code: "ACTIVE";
|
|
767
781
|
} | {
|
|
768
|
-
/**
|
|
769
|
-
|
|
770
|
-
* @constant
|
|
771
|
-
*/
|
|
772
|
-
code: "inactive";
|
|
782
|
+
/** @constant */
|
|
783
|
+
code: "INACTIVE";
|
|
773
784
|
};
|
|
774
785
|
};
|
|
775
786
|
CreateServiceAreaDto: {
|
|
@@ -832,45 +843,34 @@ export interface components {
|
|
|
832
843
|
projectId: string;
|
|
833
844
|
};
|
|
834
845
|
DispatchDto: {
|
|
846
|
+
id: string;
|
|
835
847
|
/** @example 507f1f77bcf86cd799439011 */
|
|
836
848
|
projectId: string;
|
|
837
849
|
/** @example 507f1f77bcf86cd799439012 */
|
|
838
850
|
supplierId: string;
|
|
839
851
|
status: {
|
|
840
|
-
/**
|
|
841
|
-
|
|
842
|
-
* @constant
|
|
843
|
-
*/
|
|
844
|
-
code: "pending";
|
|
852
|
+
/** @constant */
|
|
853
|
+
code: "PENDING";
|
|
845
854
|
/** Format: date-time */
|
|
846
855
|
statusUpdatedAt: string;
|
|
847
856
|
} | {
|
|
848
|
-
/**
|
|
849
|
-
|
|
850
|
-
* @constant
|
|
851
|
-
*/
|
|
852
|
-
code: "accepted";
|
|
857
|
+
/** @constant */
|
|
858
|
+
code: "ACCEPTED";
|
|
853
859
|
/** Format: date-time */
|
|
854
860
|
statusUpdatedAt: string;
|
|
855
861
|
} | {
|
|
862
|
+
/** @constant */
|
|
863
|
+
code: "REJECTED";
|
|
856
864
|
/**
|
|
857
|
-
* @example
|
|
858
|
-
* @constant
|
|
859
|
-
*/
|
|
860
|
-
code: "rejected";
|
|
861
|
-
/**
|
|
862
|
-
* @example capacity
|
|
865
|
+
* @example CAPACITY
|
|
863
866
|
* @enum {string}
|
|
864
867
|
*/
|
|
865
|
-
reason: "
|
|
868
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
866
869
|
/** Format: date-time */
|
|
867
870
|
statusUpdatedAt: string;
|
|
868
871
|
} | {
|
|
869
|
-
/**
|
|
870
|
-
|
|
871
|
-
* @constant
|
|
872
|
-
*/
|
|
873
|
-
code: "withdrawn";
|
|
872
|
+
/** @constant */
|
|
873
|
+
code: "WITHDRAWN";
|
|
874
874
|
/** Format: date-time */
|
|
875
875
|
statusUpdatedAt: string;
|
|
876
876
|
};
|
|
@@ -909,38 +909,25 @@ export interface components {
|
|
|
909
909
|
deletedAt?: string;
|
|
910
910
|
deletedBy?: string;
|
|
911
911
|
};
|
|
912
|
-
id: string;
|
|
913
912
|
};
|
|
914
913
|
UpdateDispatchStatusDto: {
|
|
915
914
|
status: {
|
|
916
|
-
/**
|
|
917
|
-
|
|
918
|
-
* @constant
|
|
919
|
-
*/
|
|
920
|
-
code: "pending";
|
|
915
|
+
/** @constant */
|
|
916
|
+
code: "PENDING";
|
|
921
917
|
} | {
|
|
922
|
-
/**
|
|
923
|
-
|
|
924
|
-
* @constant
|
|
925
|
-
*/
|
|
926
|
-
code: "accepted";
|
|
918
|
+
/** @constant */
|
|
919
|
+
code: "ACCEPTED";
|
|
927
920
|
} | {
|
|
921
|
+
/** @constant */
|
|
922
|
+
code: "REJECTED";
|
|
928
923
|
/**
|
|
929
|
-
* @example
|
|
930
|
-
* @constant
|
|
931
|
-
*/
|
|
932
|
-
code: "rejected";
|
|
933
|
-
/**
|
|
934
|
-
* @example capacity
|
|
924
|
+
* @example CAPACITY
|
|
935
925
|
* @enum {string}
|
|
936
926
|
*/
|
|
937
|
-
reason: "
|
|
927
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
938
928
|
} | {
|
|
939
|
-
/**
|
|
940
|
-
|
|
941
|
-
* @constant
|
|
942
|
-
*/
|
|
943
|
-
code: "withdrawn";
|
|
929
|
+
/** @constant */
|
|
930
|
+
code: "WITHDRAWN";
|
|
944
931
|
};
|
|
945
932
|
};
|
|
946
933
|
};
|
|
@@ -1189,10 +1176,10 @@ export interface operations {
|
|
|
1189
1176
|
limit?: number;
|
|
1190
1177
|
"account.id"?: string;
|
|
1191
1178
|
name?: string;
|
|
1192
|
-
"status.code"?: "
|
|
1179
|
+
"status.code"?: "ACTIVE" | "INACTIVE";
|
|
1193
1180
|
"aspects.minPpw"?: number;
|
|
1194
|
-
"aspects.supportedProducts"?: "
|
|
1195
|
-
"aspects.tier"?: "
|
|
1181
|
+
"aspects.supportedProducts"?: "SOLAR" | "STORAGE";
|
|
1182
|
+
"aspects.tier"?: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
1196
1183
|
"regions.region"?: string;
|
|
1197
1184
|
"regions.capacity"?: number;
|
|
1198
1185
|
};
|
|
@@ -2069,6 +2056,72 @@ export interface operations {
|
|
|
2069
2056
|
};
|
|
2070
2057
|
};
|
|
2071
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
|
+
};
|
|
2072
2125
|
DispatchesController_updateStatus: {
|
|
2073
2126
|
parameters: {
|
|
2074
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;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,O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AAM,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,KAAK,CACvD,6BAA6B,EAC7B;gBACE,IAAI,EAAE,KAAK;gBACX,MAAM,EAAE;oBACN,IAAI,EAAE,EAAE,EAAE,EAAE;iBACb;gBACD,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC;aACvC,CACF,CAAC;YAEF,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;CACF;AA/XD,wCA+XC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@palmetto/dispatch-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"main": "./dist/main.js",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/**/*",
|
|
@@ -37,5 +37,9 @@
|
|
|
37
37
|
},
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
|
+
},
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "https://github.com/palmetto/dispatch"
|
|
40
44
|
}
|
|
41
|
-
}
|
|
45
|
+
}
|