@palmetto/dispatch-sdk 0.5.1 → 0.8.0
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 +576 -485
- package/dist/client.d.ts +0 -4
- package/dist/client.js +5 -21
- package/dist/client.js.map +1 -1
- package/package.json +2 -1
|
@@ -33,74 +33,75 @@ export interface paths {
|
|
|
33
33
|
patch?: never;
|
|
34
34
|
trace?: never;
|
|
35
35
|
};
|
|
36
|
-
"/api/
|
|
36
|
+
"/api/dispatches": {
|
|
37
37
|
parameters: {
|
|
38
38
|
query?: never;
|
|
39
39
|
header?: never;
|
|
40
40
|
path?: never;
|
|
41
41
|
cookie?: never;
|
|
42
42
|
};
|
|
43
|
-
|
|
43
|
+
/** Find All Dispatches */
|
|
44
|
+
get: operations["DispatchesController_findAll"];
|
|
44
45
|
put?: never;
|
|
45
|
-
|
|
46
|
+
/** Create Dispatch */
|
|
47
|
+
post: operations["DispatchesController_create"];
|
|
46
48
|
delete?: never;
|
|
47
49
|
options?: never;
|
|
48
50
|
head?: never;
|
|
49
|
-
|
|
50
|
-
patch: operations["ProjectsController_update"];
|
|
51
|
+
patch?: never;
|
|
51
52
|
trace?: never;
|
|
52
53
|
};
|
|
53
|
-
"/api/
|
|
54
|
+
"/api/dispatches/{id}": {
|
|
54
55
|
parameters: {
|
|
55
56
|
query?: never;
|
|
56
57
|
header?: never;
|
|
57
58
|
path?: never;
|
|
58
59
|
cookie?: never;
|
|
59
60
|
};
|
|
60
|
-
/** Find
|
|
61
|
-
get: operations["
|
|
61
|
+
/** Find Dispatch By ID */
|
|
62
|
+
get: operations["DispatchesController_findOne"];
|
|
62
63
|
put?: never;
|
|
63
|
-
|
|
64
|
-
post: operations["SuppliersController_create"];
|
|
64
|
+
post?: never;
|
|
65
65
|
delete?: never;
|
|
66
66
|
options?: never;
|
|
67
67
|
head?: never;
|
|
68
68
|
patch?: never;
|
|
69
69
|
trace?: never;
|
|
70
70
|
};
|
|
71
|
-
"/api/
|
|
71
|
+
"/api/dispatches/{id}/status": {
|
|
72
72
|
parameters: {
|
|
73
73
|
query?: never;
|
|
74
74
|
header?: never;
|
|
75
75
|
path?: never;
|
|
76
76
|
cookie?: never;
|
|
77
77
|
};
|
|
78
|
-
|
|
79
|
-
get: operations["SuppliersController_findOne"];
|
|
78
|
+
get?: never;
|
|
80
79
|
put?: never;
|
|
81
80
|
post?: never;
|
|
82
81
|
delete?: never;
|
|
83
82
|
options?: never;
|
|
84
83
|
head?: never;
|
|
85
|
-
/** Update
|
|
86
|
-
patch: operations["
|
|
84
|
+
/** Update Dispatch Status */
|
|
85
|
+
patch: operations["DispatchesController_updateStatus"];
|
|
87
86
|
trace?: never;
|
|
88
87
|
};
|
|
89
|
-
"/api/
|
|
88
|
+
"/api/coverage-areas/{id}": {
|
|
90
89
|
parameters: {
|
|
91
90
|
query?: never;
|
|
92
91
|
header?: never;
|
|
93
92
|
path?: never;
|
|
94
93
|
cookie?: never;
|
|
95
94
|
};
|
|
96
|
-
|
|
95
|
+
/** Get a coverage area */
|
|
96
|
+
get: operations["CoverageAreasController_findOne"];
|
|
97
97
|
put?: never;
|
|
98
98
|
post?: never;
|
|
99
|
-
|
|
99
|
+
/** Remove a coverage area */
|
|
100
|
+
delete: operations["CoverageAreasController_remove"];
|
|
100
101
|
options?: never;
|
|
101
102
|
head?: never;
|
|
102
|
-
/** Update
|
|
103
|
-
patch: operations["
|
|
103
|
+
/** Update a coverage area */
|
|
104
|
+
patch: operations["CoverageAreasController_update"];
|
|
104
105
|
trace?: never;
|
|
105
106
|
};
|
|
106
107
|
"/api/suppliers/{id}/regions": {
|
|
@@ -146,7 +147,7 @@ export interface paths {
|
|
|
146
147
|
path?: never;
|
|
147
148
|
cookie?: never;
|
|
148
149
|
};
|
|
149
|
-
/**
|
|
150
|
+
/** Get coverage areas for a supplier region */
|
|
150
151
|
get: operations["SupplierRegionsController_getCoverageAreas"];
|
|
151
152
|
put?: never;
|
|
152
153
|
/** Create a new coverage area */
|
|
@@ -157,61 +158,43 @@ export interface paths {
|
|
|
157
158
|
patch?: never;
|
|
158
159
|
trace?: never;
|
|
159
160
|
};
|
|
160
|
-
"/api/
|
|
161
|
-
parameters: {
|
|
162
|
-
query?: never;
|
|
163
|
-
header?: never;
|
|
164
|
-
path?: never;
|
|
165
|
-
cookie?: never;
|
|
166
|
-
};
|
|
167
|
-
/** Get a coverage area */
|
|
168
|
-
get: operations["CoverageAreasController_findOne"];
|
|
169
|
-
put?: never;
|
|
170
|
-
post?: never;
|
|
171
|
-
/** Remove a coverage area */
|
|
172
|
-
delete: operations["CoverageAreasController_remove"];
|
|
173
|
-
options?: never;
|
|
174
|
-
head?: never;
|
|
175
|
-
/** Update a coverage area */
|
|
176
|
-
patch: operations["CoverageAreasController_update"];
|
|
177
|
-
trace?: never;
|
|
178
|
-
};
|
|
179
|
-
"/api/dispatches": {
|
|
161
|
+
"/api/suppliers": {
|
|
180
162
|
parameters: {
|
|
181
163
|
query?: never;
|
|
182
164
|
header?: never;
|
|
183
165
|
path?: never;
|
|
184
166
|
cookie?: never;
|
|
185
167
|
};
|
|
186
|
-
/** Find All
|
|
187
|
-
get: operations["
|
|
168
|
+
/** Find All Suppliers */
|
|
169
|
+
get: operations["SuppliersController_findAll"];
|
|
188
170
|
put?: never;
|
|
189
|
-
/** Create
|
|
190
|
-
post: operations["
|
|
171
|
+
/** Create Supplier */
|
|
172
|
+
post: operations["SuppliersController_create"];
|
|
191
173
|
delete?: never;
|
|
192
174
|
options?: never;
|
|
193
175
|
head?: never;
|
|
194
176
|
patch?: never;
|
|
195
177
|
trace?: never;
|
|
196
178
|
};
|
|
197
|
-
"/api/
|
|
179
|
+
"/api/suppliers/{id}": {
|
|
198
180
|
parameters: {
|
|
199
181
|
query?: never;
|
|
200
182
|
header?: never;
|
|
201
183
|
path?: never;
|
|
202
184
|
cookie?: never;
|
|
203
185
|
};
|
|
204
|
-
/** Find
|
|
205
|
-
get: operations["
|
|
186
|
+
/** Find Supplier By ID */
|
|
187
|
+
get: operations["SuppliersController_findOne"];
|
|
206
188
|
put?: never;
|
|
207
189
|
post?: never;
|
|
208
190
|
delete?: never;
|
|
209
191
|
options?: never;
|
|
210
192
|
head?: never;
|
|
211
|
-
|
|
193
|
+
/** Update Supplier */
|
|
194
|
+
patch: operations["SuppliersController_update"];
|
|
212
195
|
trace?: never;
|
|
213
196
|
};
|
|
214
|
-
"/api/
|
|
197
|
+
"/api/suppliers/{id}/status": {
|
|
215
198
|
parameters: {
|
|
216
199
|
query?: never;
|
|
217
200
|
header?: never;
|
|
@@ -224,8 +207,8 @@ export interface paths {
|
|
|
224
207
|
delete?: never;
|
|
225
208
|
options?: never;
|
|
226
209
|
head?: never;
|
|
227
|
-
/** Update
|
|
228
|
-
patch: operations["
|
|
210
|
+
/** Update Supplier Status */
|
|
211
|
+
patch: operations["SuppliersController_updateStatus"];
|
|
229
212
|
trace?: never;
|
|
230
213
|
};
|
|
231
214
|
}
|
|
@@ -501,63 +484,117 @@ export interface components {
|
|
|
501
484
|
/** @example Technical error description */
|
|
502
485
|
reason: string;
|
|
503
486
|
};
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
/**
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
487
|
+
CreateDispatchDto: {
|
|
488
|
+
projectId: string;
|
|
489
|
+
};
|
|
490
|
+
DispatchDto: {
|
|
491
|
+
id: string;
|
|
492
|
+
/** @example 507f1f77bcf86cd799439012 */
|
|
493
|
+
supplierId: string;
|
|
494
|
+
project: {
|
|
495
|
+
/**
|
|
496
|
+
* @description A MongoDB ObjectID
|
|
497
|
+
* @example 64f0cbbf2f4d3c6b8a1e9f0a
|
|
498
|
+
*/
|
|
499
|
+
id: string;
|
|
500
|
+
metrics: {
|
|
501
|
+
/** @example 8.5 */
|
|
502
|
+
systemSize: number;
|
|
503
|
+
/** @example 12000 */
|
|
504
|
+
firstYearProduction: number;
|
|
505
|
+
};
|
|
506
|
+
pricing: {
|
|
507
|
+
/** @example 3.2 */
|
|
508
|
+
ppw: number;
|
|
509
|
+
};
|
|
510
|
+
storage?: {
|
|
511
|
+
/** @example 5 */
|
|
512
|
+
capacity: number;
|
|
513
|
+
};
|
|
514
|
+
utility: {
|
|
515
|
+
/** @example 12345 */
|
|
516
|
+
id: string;
|
|
517
|
+
};
|
|
518
|
+
address: {
|
|
519
|
+
/** @example Berkley */
|
|
520
|
+
locality: string;
|
|
521
|
+
/** @example MA */
|
|
522
|
+
region: string;
|
|
523
|
+
/** @example 02779 */
|
|
524
|
+
postalCode: string;
|
|
521
525
|
};
|
|
522
526
|
};
|
|
523
|
-
|
|
524
|
-
/** @
|
|
525
|
-
|
|
527
|
+
status: {
|
|
528
|
+
/** @constant */
|
|
529
|
+
code: "PENDING";
|
|
530
|
+
/** Format: date-time */
|
|
531
|
+
statusUpdatedAt: string;
|
|
532
|
+
} | {
|
|
533
|
+
/** @constant */
|
|
534
|
+
code: "ACCEPTED";
|
|
535
|
+
/** Format: date-time */
|
|
536
|
+
statusUpdatedAt: string;
|
|
537
|
+
} | {
|
|
538
|
+
/** @constant */
|
|
539
|
+
code: "REJECTED";
|
|
526
540
|
/**
|
|
527
|
-
*
|
|
528
|
-
* @
|
|
541
|
+
* @example CAPACITY
|
|
542
|
+
* @enum {string}
|
|
529
543
|
*/
|
|
530
|
-
|
|
531
|
-
/**
|
|
532
|
-
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
/**
|
|
542
|
-
|
|
543
|
-
};
|
|
544
|
-
storage?: {
|
|
545
|
-
/** @example 5 */
|
|
546
|
-
capacity: number;
|
|
544
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
545
|
+
/** Format: date-time */
|
|
546
|
+
statusUpdatedAt: string;
|
|
547
|
+
} | {
|
|
548
|
+
/** @constant */
|
|
549
|
+
code: "WITHDRAWN";
|
|
550
|
+
/**
|
|
551
|
+
* @example EXPIRED
|
|
552
|
+
* @enum {string}
|
|
553
|
+
*/
|
|
554
|
+
reason: "EXPIRED" | "MANUAL";
|
|
555
|
+
/** Format: date-time */
|
|
556
|
+
statusUpdatedAt: string;
|
|
547
557
|
};
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
558
|
+
/** Format: date-time */
|
|
559
|
+
offeredAt: string;
|
|
560
|
+
/** Format: date-time */
|
|
561
|
+
respondedAt?: string;
|
|
562
|
+
/** Format: date-time */
|
|
563
|
+
expiresAt: string;
|
|
564
|
+
match: {
|
|
565
|
+
/** @example 507f1f77bcf86cd799439011 */
|
|
566
|
+
supplierId: string;
|
|
567
|
+
/** @example 0.85 */
|
|
568
|
+
weight: number;
|
|
569
|
+
}[];
|
|
570
|
+
meta: {
|
|
571
|
+
/**
|
|
572
|
+
* Format: date-time
|
|
573
|
+
* @description Created at timestamp
|
|
574
|
+
* @example 2022-01-21T00:15:16.000Z
|
|
575
|
+
*/
|
|
576
|
+
createdAt: string;
|
|
577
|
+
createdBy: string;
|
|
578
|
+
/**
|
|
579
|
+
* Format: date-time
|
|
580
|
+
* @description Updated at timestamp
|
|
581
|
+
* @example 2022-01-21T00:15:16.000Z
|
|
582
|
+
*/
|
|
583
|
+
updatedAt?: string;
|
|
584
|
+
updatedBy?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Format: date-time
|
|
587
|
+
* @description Deleted at timestamp
|
|
588
|
+
* @example 2022-01-21T00:15:16.000Z
|
|
589
|
+
*/
|
|
590
|
+
deletedAt?: string;
|
|
591
|
+
deletedBy?: string;
|
|
551
592
|
};
|
|
552
593
|
/**
|
|
553
|
-
* @
|
|
554
|
-
*
|
|
555
|
-
* "STORAGE"
|
|
556
|
-
* ]
|
|
594
|
+
* @deprecated
|
|
595
|
+
* @example 507f1f77bcf86cd799439011
|
|
557
596
|
*/
|
|
558
|
-
|
|
559
|
-
/** @constant */
|
|
560
|
-
isServiceable?: false;
|
|
597
|
+
projectId: string;
|
|
561
598
|
};
|
|
562
599
|
NotFoundErrorDto: {
|
|
563
600
|
/**
|
|
@@ -575,18 +612,29 @@ export interface components {
|
|
|
575
612
|
/** @example Technical error description */
|
|
576
613
|
reason: string;
|
|
577
614
|
};
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
/** @
|
|
581
|
-
|
|
615
|
+
UpdateDispatchStatusDto: {
|
|
616
|
+
status: {
|
|
617
|
+
/** @constant */
|
|
618
|
+
code: "ACCEPTED";
|
|
619
|
+
} | {
|
|
620
|
+
/** @constant */
|
|
621
|
+
code: "REJECTED";
|
|
582
622
|
/**
|
|
583
|
-
* @example
|
|
623
|
+
* @example CAPACITY
|
|
584
624
|
* @enum {string}
|
|
585
625
|
*/
|
|
586
|
-
|
|
626
|
+
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
627
|
+
} | {
|
|
628
|
+
/** @constant */
|
|
629
|
+
code: "WITHDRAWN";
|
|
630
|
+
/** @enum {string} */
|
|
631
|
+
reason: "MANUAL";
|
|
587
632
|
};
|
|
588
|
-
|
|
589
|
-
|
|
633
|
+
};
|
|
634
|
+
CoverageAreaDto: {
|
|
635
|
+
id: string;
|
|
636
|
+
supplierId: string;
|
|
637
|
+
supplierRegionId: string;
|
|
590
638
|
address: {
|
|
591
639
|
/** @example 4 Bonnie Dr */
|
|
592
640
|
streetAddress: string;
|
|
@@ -605,140 +653,25 @@ export interface components {
|
|
|
605
653
|
lon: number;
|
|
606
654
|
};
|
|
607
655
|
};
|
|
608
|
-
|
|
609
|
-
/** @example 2.5 */
|
|
610
|
-
minPpw: number;
|
|
656
|
+
radius: {
|
|
611
657
|
/**
|
|
612
|
-
* @example
|
|
613
|
-
*
|
|
614
|
-
* "STORAGE"
|
|
615
|
-
* ]
|
|
658
|
+
* @example MILES
|
|
659
|
+
* @enum {string}
|
|
616
660
|
*/
|
|
617
|
-
|
|
661
|
+
unit: "MILES" | "METERS";
|
|
662
|
+
/** @example 50 */
|
|
663
|
+
value: number;
|
|
664
|
+
};
|
|
665
|
+
};
|
|
666
|
+
UpdateCoverageAreaDto: {
|
|
667
|
+
radius: {
|
|
618
668
|
/**
|
|
619
|
-
* @example
|
|
669
|
+
* @example MILES
|
|
620
670
|
* @enum {string}
|
|
621
671
|
*/
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
/** @constant */
|
|
626
|
-
code: "ACTIVE";
|
|
627
|
-
} | {
|
|
628
|
-
/** @constant */
|
|
629
|
-
code: "INACTIVE";
|
|
630
|
-
};
|
|
631
|
-
};
|
|
632
|
-
SupplierDto: {
|
|
633
|
-
id: string;
|
|
634
|
-
organization: {
|
|
635
|
-
/** @example org_12345 */
|
|
636
|
-
id: string;
|
|
637
|
-
/**
|
|
638
|
-
* @example LIGHT_REACH
|
|
639
|
-
* @enum {string}
|
|
640
|
-
*/
|
|
641
|
-
type: "LIGHT_REACH";
|
|
642
|
-
};
|
|
643
|
-
/** @example Solar Company */
|
|
644
|
-
name: string;
|
|
645
|
-
address: {
|
|
646
|
-
/** @example 4 Bonnie Dr */
|
|
647
|
-
streetAddress: string;
|
|
648
|
-
/** @example Berkley */
|
|
649
|
-
locality: string;
|
|
650
|
-
/** @example MA */
|
|
651
|
-
region: string;
|
|
652
|
-
/** @example 02779 */
|
|
653
|
-
postalCode: string;
|
|
654
|
-
/** @example US */
|
|
655
|
-
country: string;
|
|
656
|
-
coordinates: {
|
|
657
|
-
/** @example 41.8714689 */
|
|
658
|
-
lat: number;
|
|
659
|
-
/** @example -71.0950429 */
|
|
660
|
-
lon: number;
|
|
661
|
-
};
|
|
662
|
-
};
|
|
663
|
-
aspects: {
|
|
664
|
-
/** @example 2.5 */
|
|
665
|
-
minPpw: number;
|
|
666
|
-
/**
|
|
667
|
-
* @example [
|
|
668
|
-
* "SOLAR",
|
|
669
|
-
* "STORAGE"
|
|
670
|
-
* ]
|
|
671
|
-
*/
|
|
672
|
-
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
673
|
-
/**
|
|
674
|
-
* @example ELITE
|
|
675
|
-
* @enum {string}
|
|
676
|
-
*/
|
|
677
|
-
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
678
|
-
};
|
|
679
|
-
status: {
|
|
680
|
-
/** @constant */
|
|
681
|
-
code: "ACTIVE";
|
|
682
|
-
/** Format: date-time */
|
|
683
|
-
statusUpdatedAt: string;
|
|
684
|
-
} | {
|
|
685
|
-
/** @constant */
|
|
686
|
-
code: "INACTIVE";
|
|
687
|
-
/** Format: date-time */
|
|
688
|
-
statusUpdatedAt: string;
|
|
689
|
-
};
|
|
690
|
-
meta: {
|
|
691
|
-
/**
|
|
692
|
-
* Format: date-time
|
|
693
|
-
* @description Created at timestamp
|
|
694
|
-
* @example 2022-01-21T00:15:16.000Z
|
|
695
|
-
*/
|
|
696
|
-
createdAt: string;
|
|
697
|
-
createdBy: string;
|
|
698
|
-
/**
|
|
699
|
-
* Format: date-time
|
|
700
|
-
* @description Updated at timestamp
|
|
701
|
-
* @example 2022-01-21T00:15:16.000Z
|
|
702
|
-
*/
|
|
703
|
-
updatedAt?: string;
|
|
704
|
-
updatedBy?: string;
|
|
705
|
-
/**
|
|
706
|
-
* Format: date-time
|
|
707
|
-
* @description Deleted at timestamp
|
|
708
|
-
* @example 2022-01-21T00:15:16.000Z
|
|
709
|
-
*/
|
|
710
|
-
deletedAt?: string;
|
|
711
|
-
deletedBy?: string;
|
|
712
|
-
};
|
|
713
|
-
};
|
|
714
|
-
UpdateSupplierDto: {
|
|
715
|
-
name?: string;
|
|
716
|
-
address?: {
|
|
717
|
-
/** @example 4 Bonnie Dr */
|
|
718
|
-
streetAddress: string;
|
|
719
|
-
/** @example Berkley */
|
|
720
|
-
locality: string;
|
|
721
|
-
/** @example MA */
|
|
722
|
-
region: string;
|
|
723
|
-
/** @example 02779 */
|
|
724
|
-
postalCode: string;
|
|
725
|
-
/** @example US */
|
|
726
|
-
country: string;
|
|
727
|
-
coordinates: {
|
|
728
|
-
/** @example 41.8714689 */
|
|
729
|
-
lat: number;
|
|
730
|
-
/** @example -71.0950429 */
|
|
731
|
-
lon: number;
|
|
732
|
-
};
|
|
733
|
-
};
|
|
734
|
-
};
|
|
735
|
-
UpdateSupplierStatusDto: {
|
|
736
|
-
status: {
|
|
737
|
-
/** @constant */
|
|
738
|
-
code: "ACTIVE";
|
|
739
|
-
} | {
|
|
740
|
-
/** @constant */
|
|
741
|
-
code: "INACTIVE";
|
|
672
|
+
unit: "MILES" | "METERS";
|
|
673
|
+
/** @example 50 */
|
|
674
|
+
value: number;
|
|
742
675
|
};
|
|
743
676
|
};
|
|
744
677
|
CreateSupplierRegionDto: {
|
|
@@ -803,10 +736,18 @@ export interface components {
|
|
|
803
736
|
value: number;
|
|
804
737
|
};
|
|
805
738
|
};
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
739
|
+
CreateSupplierDto: {
|
|
740
|
+
organization: {
|
|
741
|
+
/** @example org_12345 */
|
|
742
|
+
id: string;
|
|
743
|
+
/**
|
|
744
|
+
* @example LIGHT_REACH
|
|
745
|
+
* @enum {string}
|
|
746
|
+
*/
|
|
747
|
+
type: "LIGHT_REACH";
|
|
748
|
+
};
|
|
749
|
+
/** @example Solar Company */
|
|
750
|
+
name: string;
|
|
810
751
|
address: {
|
|
811
752
|
/** @example 4 Bonnie Dr */
|
|
812
753
|
streetAddress: string;
|
|
@@ -825,74 +766,88 @@ export interface components {
|
|
|
825
766
|
lon: number;
|
|
826
767
|
};
|
|
827
768
|
};
|
|
828
|
-
|
|
769
|
+
aspects: {
|
|
770
|
+
/** @example 2.5 */
|
|
771
|
+
minPpw: number;
|
|
829
772
|
/**
|
|
830
|
-
* @example
|
|
831
|
-
*
|
|
773
|
+
* @example [
|
|
774
|
+
* "SOLAR",
|
|
775
|
+
* "STORAGE"
|
|
776
|
+
* ]
|
|
832
777
|
*/
|
|
833
|
-
|
|
834
|
-
/** @example 50 */
|
|
835
|
-
value: number;
|
|
836
|
-
};
|
|
837
|
-
};
|
|
838
|
-
UpdateCoverageAreaDto: {
|
|
839
|
-
radius: {
|
|
778
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
840
779
|
/**
|
|
841
|
-
* @example
|
|
780
|
+
* @example ELITE
|
|
842
781
|
* @enum {string}
|
|
843
782
|
*/
|
|
844
|
-
|
|
845
|
-
/** @example 50 */
|
|
846
|
-
value: number;
|
|
783
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
847
784
|
};
|
|
848
|
-
};
|
|
849
|
-
CreateDispatchDto: {
|
|
850
|
-
projectId: string;
|
|
851
|
-
};
|
|
852
|
-
DispatchDto: {
|
|
853
|
-
id: string;
|
|
854
|
-
/** @example 507f1f77bcf86cd799439011 */
|
|
855
|
-
projectId: string;
|
|
856
|
-
/** @example 507f1f77bcf86cd799439012 */
|
|
857
|
-
supplierId: string;
|
|
858
785
|
status: {
|
|
859
786
|
/** @constant */
|
|
860
|
-
code: "
|
|
861
|
-
/** Format: date-time */
|
|
862
|
-
statusUpdatedAt: string;
|
|
863
|
-
} | {
|
|
864
|
-
/** @constant */
|
|
865
|
-
code: "ACCEPTED";
|
|
866
|
-
/** Format: date-time */
|
|
867
|
-
statusUpdatedAt: string;
|
|
787
|
+
code: "ACTIVE";
|
|
868
788
|
} | {
|
|
869
789
|
/** @constant */
|
|
870
|
-
code: "
|
|
790
|
+
code: "INACTIVE";
|
|
791
|
+
};
|
|
792
|
+
};
|
|
793
|
+
SupplierDto: {
|
|
794
|
+
id: string;
|
|
795
|
+
organization: {
|
|
796
|
+
/** @example org_12345 */
|
|
797
|
+
id: string;
|
|
871
798
|
/**
|
|
872
|
-
* @example
|
|
799
|
+
* @example LIGHT_REACH
|
|
873
800
|
* @enum {string}
|
|
874
801
|
*/
|
|
875
|
-
|
|
802
|
+
type: "LIGHT_REACH";
|
|
803
|
+
};
|
|
804
|
+
/** @example Solar Company */
|
|
805
|
+
name: string;
|
|
806
|
+
address: {
|
|
807
|
+
/** @example 4 Bonnie Dr */
|
|
808
|
+
streetAddress: string;
|
|
809
|
+
/** @example Berkley */
|
|
810
|
+
locality: string;
|
|
811
|
+
/** @example MA */
|
|
812
|
+
region: string;
|
|
813
|
+
/** @example 02779 */
|
|
814
|
+
postalCode: string;
|
|
815
|
+
/** @example US */
|
|
816
|
+
country: string;
|
|
817
|
+
coordinates: {
|
|
818
|
+
/** @example 41.8714689 */
|
|
819
|
+
lat: number;
|
|
820
|
+
/** @example -71.0950429 */
|
|
821
|
+
lon: number;
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
aspects: {
|
|
825
|
+
/** @example 2.5 */
|
|
826
|
+
minPpw: number;
|
|
827
|
+
/**
|
|
828
|
+
* @example [
|
|
829
|
+
* "SOLAR",
|
|
830
|
+
* "STORAGE"
|
|
831
|
+
* ]
|
|
832
|
+
*/
|
|
833
|
+
supportedProducts: ("SOLAR" | "STORAGE")[];
|
|
834
|
+
/**
|
|
835
|
+
* @example ELITE
|
|
836
|
+
* @enum {string}
|
|
837
|
+
*/
|
|
838
|
+
tier: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
839
|
+
};
|
|
840
|
+
status: {
|
|
841
|
+
/** @constant */
|
|
842
|
+
code: "ACTIVE";
|
|
876
843
|
/** Format: date-time */
|
|
877
844
|
statusUpdatedAt: string;
|
|
878
845
|
} | {
|
|
879
846
|
/** @constant */
|
|
880
|
-
code: "
|
|
847
|
+
code: "INACTIVE";
|
|
881
848
|
/** Format: date-time */
|
|
882
849
|
statusUpdatedAt: string;
|
|
883
850
|
};
|
|
884
|
-
/** Format: date-time */
|
|
885
|
-
offeredAt: string;
|
|
886
|
-
/** Format: date-time */
|
|
887
|
-
respondedAt?: string;
|
|
888
|
-
/** Format: date-time */
|
|
889
|
-
expiresAt: string;
|
|
890
|
-
match: {
|
|
891
|
-
/** @example 507f1f77bcf86cd799439011 */
|
|
892
|
-
supplierId: string;
|
|
893
|
-
/** @example 0.85 */
|
|
894
|
-
weight: number;
|
|
895
|
-
}[];
|
|
896
851
|
meta: {
|
|
897
852
|
/**
|
|
898
853
|
* Format: date-time
|
|
@@ -917,24 +872,34 @@ export interface components {
|
|
|
917
872
|
deletedBy?: string;
|
|
918
873
|
};
|
|
919
874
|
};
|
|
920
|
-
|
|
875
|
+
UpdateSupplierDto: {
|
|
876
|
+
name?: string;
|
|
877
|
+
address?: {
|
|
878
|
+
/** @example 4 Bonnie Dr */
|
|
879
|
+
streetAddress: string;
|
|
880
|
+
/** @example Berkley */
|
|
881
|
+
locality: string;
|
|
882
|
+
/** @example MA */
|
|
883
|
+
region: string;
|
|
884
|
+
/** @example 02779 */
|
|
885
|
+
postalCode: string;
|
|
886
|
+
/** @example US */
|
|
887
|
+
country: string;
|
|
888
|
+
coordinates: {
|
|
889
|
+
/** @example 41.8714689 */
|
|
890
|
+
lat: number;
|
|
891
|
+
/** @example -71.0950429 */
|
|
892
|
+
lon: number;
|
|
893
|
+
};
|
|
894
|
+
};
|
|
895
|
+
};
|
|
896
|
+
UpdateSupplierStatusDto: {
|
|
921
897
|
status: {
|
|
922
898
|
/** @constant */
|
|
923
|
-
code: "
|
|
924
|
-
} | {
|
|
925
|
-
/** @constant */
|
|
926
|
-
code: "ACCEPTED";
|
|
927
|
-
} | {
|
|
928
|
-
/** @constant */
|
|
929
|
-
code: "REJECTED";
|
|
930
|
-
/**
|
|
931
|
-
* @example CAPACITY
|
|
932
|
-
* @enum {string}
|
|
933
|
-
*/
|
|
934
|
-
reason: "CAPACITY" | "EQUIPEMENT" | "DISTANCE" | "PRICING" | "NOT_INTERESTED" | "OTHER";
|
|
899
|
+
code: "ACTIVE";
|
|
935
900
|
} | {
|
|
936
901
|
/** @constant */
|
|
937
|
-
code: "
|
|
902
|
+
code: "INACTIVE";
|
|
938
903
|
};
|
|
939
904
|
};
|
|
940
905
|
};
|
|
@@ -1106,30 +1071,88 @@ export interface operations {
|
|
|
1106
1071
|
};
|
|
1107
1072
|
};
|
|
1108
1073
|
};
|
|
1109
|
-
|
|
1074
|
+
DispatchesController_findAll: {
|
|
1110
1075
|
parameters: {
|
|
1111
|
-
query?:
|
|
1076
|
+
query?: {
|
|
1077
|
+
page?: number;
|
|
1078
|
+
limit?: number;
|
|
1079
|
+
supplierId?: string;
|
|
1080
|
+
};
|
|
1112
1081
|
header?: never;
|
|
1113
|
-
path
|
|
1114
|
-
|
|
1082
|
+
path?: never;
|
|
1083
|
+
cookie?: never;
|
|
1084
|
+
};
|
|
1085
|
+
requestBody?: never;
|
|
1086
|
+
responses: {
|
|
1087
|
+
200: {
|
|
1088
|
+
headers: {
|
|
1089
|
+
[name: string]: unknown;
|
|
1090
|
+
};
|
|
1091
|
+
content: {
|
|
1092
|
+
"application/json": {
|
|
1093
|
+
data: components["schemas"]["DispatchDto"][];
|
|
1094
|
+
paging: components["schemas"]["PagingDto"];
|
|
1095
|
+
};
|
|
1096
|
+
};
|
|
1097
|
+
};
|
|
1098
|
+
/** @description When the query request is invalid */
|
|
1099
|
+
400: {
|
|
1100
|
+
headers: {
|
|
1101
|
+
[name: string]: unknown;
|
|
1102
|
+
};
|
|
1103
|
+
content: {
|
|
1104
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1105
|
+
};
|
|
1106
|
+
};
|
|
1107
|
+
/** @description When authentication fails */
|
|
1108
|
+
401: {
|
|
1109
|
+
headers: {
|
|
1110
|
+
[name: string]: unknown;
|
|
1111
|
+
};
|
|
1112
|
+
content: {
|
|
1113
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1114
|
+
};
|
|
1115
|
+
};
|
|
1116
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1117
|
+
403: {
|
|
1118
|
+
headers: {
|
|
1119
|
+
[name: string]: unknown;
|
|
1120
|
+
};
|
|
1121
|
+
content: {
|
|
1122
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1123
|
+
};
|
|
1124
|
+
};
|
|
1125
|
+
/** @description When the request is valid, but something goes wrong on the server */
|
|
1126
|
+
500: {
|
|
1127
|
+
headers: {
|
|
1128
|
+
[name: string]: unknown;
|
|
1129
|
+
};
|
|
1130
|
+
content: {
|
|
1131
|
+
"application/json": components["schemas"]["InternalServerErrorDto"];
|
|
1132
|
+
};
|
|
1115
1133
|
};
|
|
1134
|
+
};
|
|
1135
|
+
};
|
|
1136
|
+
DispatchesController_create: {
|
|
1137
|
+
parameters: {
|
|
1138
|
+
query?: never;
|
|
1139
|
+
header?: never;
|
|
1140
|
+
path?: never;
|
|
1116
1141
|
cookie?: never;
|
|
1117
1142
|
};
|
|
1118
1143
|
requestBody: {
|
|
1119
1144
|
content: {
|
|
1120
|
-
"application/json": components["schemas"]["
|
|
1145
|
+
"application/json": components["schemas"]["CreateDispatchDto"];
|
|
1121
1146
|
};
|
|
1122
1147
|
};
|
|
1123
1148
|
responses: {
|
|
1124
|
-
|
|
1149
|
+
204: {
|
|
1125
1150
|
headers: {
|
|
1126
1151
|
[name: string]: unknown;
|
|
1127
1152
|
};
|
|
1128
|
-
content
|
|
1129
|
-
"application/json": components["schemas"]["ProjectDto"];
|
|
1130
|
-
};
|
|
1153
|
+
content?: never;
|
|
1131
1154
|
};
|
|
1132
|
-
/** @description When the
|
|
1155
|
+
/** @description When the request is invalid */
|
|
1133
1156
|
400: {
|
|
1134
1157
|
headers: {
|
|
1135
1158
|
[name: string]: unknown;
|
|
@@ -1156,13 +1179,13 @@ export interface operations {
|
|
|
1156
1179
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1157
1180
|
};
|
|
1158
1181
|
};
|
|
1159
|
-
/** @description When
|
|
1160
|
-
|
|
1182
|
+
/** @description When a dispatch has been created for this project and is awaiting supplier response */
|
|
1183
|
+
409: {
|
|
1161
1184
|
headers: {
|
|
1162
1185
|
[name: string]: unknown;
|
|
1163
1186
|
};
|
|
1164
1187
|
content: {
|
|
1165
|
-
"application/json": components["schemas"]["
|
|
1188
|
+
"application/json": components["schemas"]["ConflictErrorDto"];
|
|
1166
1189
|
};
|
|
1167
1190
|
};
|
|
1168
1191
|
/** @description When the request is valid, but something goes wrong on the server */
|
|
@@ -1176,22 +1199,13 @@ export interface operations {
|
|
|
1176
1199
|
};
|
|
1177
1200
|
};
|
|
1178
1201
|
};
|
|
1179
|
-
|
|
1202
|
+
DispatchesController_findOne: {
|
|
1180
1203
|
parameters: {
|
|
1181
|
-
query?:
|
|
1182
|
-
page?: number;
|
|
1183
|
-
limit?: number;
|
|
1184
|
-
"organization.id"?: string;
|
|
1185
|
-
name?: string;
|
|
1186
|
-
"status.code"?: "ACTIVE" | "INACTIVE";
|
|
1187
|
-
"aspects.minPpw"?: number;
|
|
1188
|
-
"aspects.supportedProducts"?: "SOLAR" | "STORAGE";
|
|
1189
|
-
"aspects.tier"?: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
1190
|
-
"regions.region"?: string;
|
|
1191
|
-
"regions.capacity"?: number;
|
|
1192
|
-
};
|
|
1204
|
+
query?: never;
|
|
1193
1205
|
header?: never;
|
|
1194
|
-
path
|
|
1206
|
+
path: {
|
|
1207
|
+
id: string;
|
|
1208
|
+
};
|
|
1195
1209
|
cookie?: never;
|
|
1196
1210
|
};
|
|
1197
1211
|
requestBody?: never;
|
|
@@ -1201,13 +1215,10 @@ export interface operations {
|
|
|
1201
1215
|
[name: string]: unknown;
|
|
1202
1216
|
};
|
|
1203
1217
|
content: {
|
|
1204
|
-
"application/json":
|
|
1205
|
-
data: components["schemas"]["SupplierDto"][];
|
|
1206
|
-
paging: components["schemas"]["PagingDto"];
|
|
1207
|
-
};
|
|
1218
|
+
"application/json": components["schemas"]["DispatchDto"];
|
|
1208
1219
|
};
|
|
1209
1220
|
};
|
|
1210
|
-
/** @description When the
|
|
1221
|
+
/** @description When the ID is invalid */
|
|
1211
1222
|
400: {
|
|
1212
1223
|
headers: {
|
|
1213
1224
|
[name: string]: unknown;
|
|
@@ -1234,6 +1245,15 @@ export interface operations {
|
|
|
1234
1245
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1235
1246
|
};
|
|
1236
1247
|
};
|
|
1248
|
+
/** @description When the dispatch is not found */
|
|
1249
|
+
404: {
|
|
1250
|
+
headers: {
|
|
1251
|
+
[name: string]: unknown;
|
|
1252
|
+
};
|
|
1253
|
+
content: {
|
|
1254
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1255
|
+
};
|
|
1256
|
+
};
|
|
1237
1257
|
/** @description When the request is valid, but something goes wrong on the server */
|
|
1238
1258
|
500: {
|
|
1239
1259
|
headers: {
|
|
@@ -1245,28 +1265,30 @@ export interface operations {
|
|
|
1245
1265
|
};
|
|
1246
1266
|
};
|
|
1247
1267
|
};
|
|
1248
|
-
|
|
1268
|
+
DispatchesController_updateStatus: {
|
|
1249
1269
|
parameters: {
|
|
1250
1270
|
query?: never;
|
|
1251
1271
|
header?: never;
|
|
1252
|
-
path
|
|
1272
|
+
path: {
|
|
1273
|
+
id: string;
|
|
1274
|
+
};
|
|
1253
1275
|
cookie?: never;
|
|
1254
1276
|
};
|
|
1255
1277
|
requestBody: {
|
|
1256
1278
|
content: {
|
|
1257
|
-
"application/json": components["schemas"]["
|
|
1279
|
+
"application/json": components["schemas"]["UpdateDispatchStatusDto"];
|
|
1258
1280
|
};
|
|
1259
1281
|
};
|
|
1260
1282
|
responses: {
|
|
1261
|
-
|
|
1283
|
+
200: {
|
|
1262
1284
|
headers: {
|
|
1263
1285
|
[name: string]: unknown;
|
|
1264
1286
|
};
|
|
1265
1287
|
content: {
|
|
1266
|
-
"application/json": components["schemas"]["
|
|
1288
|
+
"application/json": components["schemas"]["DispatchDto"];
|
|
1267
1289
|
};
|
|
1268
1290
|
};
|
|
1269
|
-
/** @description When the request is invalid */
|
|
1291
|
+
/** @description When the ID or body request is invalid */
|
|
1270
1292
|
400: {
|
|
1271
1293
|
headers: {
|
|
1272
1294
|
[name: string]: unknown;
|
|
@@ -1293,13 +1315,13 @@ export interface operations {
|
|
|
1293
1315
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1294
1316
|
};
|
|
1295
1317
|
};
|
|
1296
|
-
/** @description When the
|
|
1297
|
-
|
|
1318
|
+
/** @description When the dispatch is not found */
|
|
1319
|
+
404: {
|
|
1298
1320
|
headers: {
|
|
1299
1321
|
[name: string]: unknown;
|
|
1300
1322
|
};
|
|
1301
1323
|
content: {
|
|
1302
|
-
"application/json": components["schemas"]["
|
|
1324
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1303
1325
|
};
|
|
1304
1326
|
};
|
|
1305
1327
|
/** @description When the request is valid, but something goes wrong on the server */
|
|
@@ -1313,7 +1335,7 @@ export interface operations {
|
|
|
1313
1335
|
};
|
|
1314
1336
|
};
|
|
1315
1337
|
};
|
|
1316
|
-
|
|
1338
|
+
CoverageAreasController_findOne: {
|
|
1317
1339
|
parameters: {
|
|
1318
1340
|
query?: never;
|
|
1319
1341
|
header?: never;
|
|
@@ -1329,10 +1351,10 @@ export interface operations {
|
|
|
1329
1351
|
[name: string]: unknown;
|
|
1330
1352
|
};
|
|
1331
1353
|
content: {
|
|
1332
|
-
"application/json": components["schemas"]["
|
|
1354
|
+
"application/json": components["schemas"]["CoverageAreaDto"];
|
|
1333
1355
|
};
|
|
1334
1356
|
};
|
|
1335
|
-
/** @description When the
|
|
1357
|
+
/** @description When the request is invalid */
|
|
1336
1358
|
400: {
|
|
1337
1359
|
headers: {
|
|
1338
1360
|
[name: string]: unknown;
|
|
@@ -1359,7 +1381,7 @@ export interface operations {
|
|
|
1359
1381
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1360
1382
|
};
|
|
1361
1383
|
};
|
|
1362
|
-
/** @description When the
|
|
1384
|
+
/** @description When the coverage area is not found */
|
|
1363
1385
|
404: {
|
|
1364
1386
|
headers: {
|
|
1365
1387
|
[name: string]: unknown;
|
|
@@ -1379,7 +1401,7 @@ export interface operations {
|
|
|
1379
1401
|
};
|
|
1380
1402
|
};
|
|
1381
1403
|
};
|
|
1382
|
-
|
|
1404
|
+
CoverageAreasController_remove: {
|
|
1383
1405
|
parameters: {
|
|
1384
1406
|
query?: never;
|
|
1385
1407
|
header?: never;
|
|
@@ -1388,19 +1410,13 @@ export interface operations {
|
|
|
1388
1410
|
};
|
|
1389
1411
|
cookie?: never;
|
|
1390
1412
|
};
|
|
1391
|
-
requestBody
|
|
1392
|
-
content: {
|
|
1393
|
-
"application/json": components["schemas"]["UpdateSupplierDto"];
|
|
1394
|
-
};
|
|
1395
|
-
};
|
|
1413
|
+
requestBody?: never;
|
|
1396
1414
|
responses: {
|
|
1397
|
-
|
|
1415
|
+
204: {
|
|
1398
1416
|
headers: {
|
|
1399
1417
|
[name: string]: unknown;
|
|
1400
1418
|
};
|
|
1401
|
-
content
|
|
1402
|
-
"application/json": components["schemas"]["SupplierDto"];
|
|
1403
|
-
};
|
|
1419
|
+
content?: never;
|
|
1404
1420
|
};
|
|
1405
1421
|
/** @description When the request is invalid */
|
|
1406
1422
|
400: {
|
|
@@ -1429,7 +1445,7 @@ export interface operations {
|
|
|
1429
1445
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1430
1446
|
};
|
|
1431
1447
|
};
|
|
1432
|
-
/** @description When the
|
|
1448
|
+
/** @description When the coverage area is not found */
|
|
1433
1449
|
404: {
|
|
1434
1450
|
headers: {
|
|
1435
1451
|
[name: string]: unknown;
|
|
@@ -1449,7 +1465,7 @@ export interface operations {
|
|
|
1449
1465
|
};
|
|
1450
1466
|
};
|
|
1451
1467
|
};
|
|
1452
|
-
|
|
1468
|
+
CoverageAreasController_update: {
|
|
1453
1469
|
parameters: {
|
|
1454
1470
|
query?: never;
|
|
1455
1471
|
header?: never;
|
|
@@ -1460,7 +1476,7 @@ export interface operations {
|
|
|
1460
1476
|
};
|
|
1461
1477
|
requestBody: {
|
|
1462
1478
|
content: {
|
|
1463
|
-
"application/json": components["schemas"]["
|
|
1479
|
+
"application/json": components["schemas"]["UpdateCoverageAreaDto"];
|
|
1464
1480
|
};
|
|
1465
1481
|
};
|
|
1466
1482
|
responses: {
|
|
@@ -1469,10 +1485,10 @@ export interface operations {
|
|
|
1469
1485
|
[name: string]: unknown;
|
|
1470
1486
|
};
|
|
1471
1487
|
content: {
|
|
1472
|
-
"application/json": components["schemas"]["
|
|
1488
|
+
"application/json": components["schemas"]["CoverageAreaDto"];
|
|
1473
1489
|
};
|
|
1474
1490
|
};
|
|
1475
|
-
/** @description When the
|
|
1491
|
+
/** @description When the request is invalid */
|
|
1476
1492
|
400: {
|
|
1477
1493
|
headers: {
|
|
1478
1494
|
[name: string]: unknown;
|
|
@@ -1499,7 +1515,7 @@ export interface operations {
|
|
|
1499
1515
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1500
1516
|
};
|
|
1501
1517
|
};
|
|
1502
|
-
/** @description When the
|
|
1518
|
+
/** @description When the coverage area is not found */
|
|
1503
1519
|
404: {
|
|
1504
1520
|
headers: {
|
|
1505
1521
|
[name: string]: unknown;
|
|
@@ -1549,6 +1565,24 @@ export interface operations {
|
|
|
1549
1565
|
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1550
1566
|
};
|
|
1551
1567
|
};
|
|
1568
|
+
/** @description When authentication fails */
|
|
1569
|
+
401: {
|
|
1570
|
+
headers: {
|
|
1571
|
+
[name: string]: unknown;
|
|
1572
|
+
};
|
|
1573
|
+
content: {
|
|
1574
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1577
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1578
|
+
403: {
|
|
1579
|
+
headers: {
|
|
1580
|
+
[name: string]: unknown;
|
|
1581
|
+
};
|
|
1582
|
+
content: {
|
|
1583
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1584
|
+
};
|
|
1585
|
+
};
|
|
1552
1586
|
/** @description When the supplier is not found */
|
|
1553
1587
|
404: {
|
|
1554
1588
|
headers: {
|
|
@@ -1601,61 +1635,40 @@ export interface operations {
|
|
|
1601
1635
|
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1602
1636
|
};
|
|
1603
1637
|
};
|
|
1604
|
-
/** @description When
|
|
1605
|
-
|
|
1606
|
-
headers: {
|
|
1607
|
-
[name: string]: unknown;
|
|
1608
|
-
};
|
|
1609
|
-
content: {
|
|
1610
|
-
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1611
|
-
};
|
|
1612
|
-
};
|
|
1613
|
-
/** @description When there's an existing region for this supplier */
|
|
1614
|
-
409: {
|
|
1638
|
+
/** @description When authentication fails */
|
|
1639
|
+
401: {
|
|
1615
1640
|
headers: {
|
|
1616
1641
|
[name: string]: unknown;
|
|
1617
1642
|
};
|
|
1618
1643
|
content: {
|
|
1619
|
-
"application/json": components["schemas"]["
|
|
1644
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1620
1645
|
};
|
|
1621
1646
|
};
|
|
1622
|
-
/** @description When the
|
|
1623
|
-
|
|
1647
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1648
|
+
403: {
|
|
1624
1649
|
headers: {
|
|
1625
1650
|
[name: string]: unknown;
|
|
1626
1651
|
};
|
|
1627
1652
|
content: {
|
|
1628
|
-
"application/json": components["schemas"]["
|
|
1653
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1629
1654
|
};
|
|
1630
1655
|
};
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
SupplierRegionsController_findOne: {
|
|
1634
|
-
parameters: {
|
|
1635
|
-
query?: never;
|
|
1636
|
-
header?: never;
|
|
1637
|
-
path: {
|
|
1638
|
-
id: string;
|
|
1639
|
-
};
|
|
1640
|
-
cookie?: never;
|
|
1641
|
-
};
|
|
1642
|
-
requestBody?: never;
|
|
1643
|
-
responses: {
|
|
1644
|
-
200: {
|
|
1656
|
+
/** @description When the supplier is not found */
|
|
1657
|
+
404: {
|
|
1645
1658
|
headers: {
|
|
1646
1659
|
[name: string]: unknown;
|
|
1647
1660
|
};
|
|
1648
1661
|
content: {
|
|
1649
|
-
"application/json": components["schemas"]["
|
|
1662
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
1650
1663
|
};
|
|
1651
1664
|
};
|
|
1652
|
-
/** @description When
|
|
1653
|
-
|
|
1665
|
+
/** @description When there's an existing region for this supplier */
|
|
1666
|
+
409: {
|
|
1654
1667
|
headers: {
|
|
1655
1668
|
[name: string]: unknown;
|
|
1656
1669
|
};
|
|
1657
1670
|
content: {
|
|
1658
|
-
"application/json": components["schemas"]["
|
|
1671
|
+
"application/json": components["schemas"]["ConflictErrorDto"];
|
|
1659
1672
|
};
|
|
1660
1673
|
};
|
|
1661
1674
|
/** @description When the request is valid, but something goes wrong on the server */
|
|
@@ -1669,7 +1682,7 @@ export interface operations {
|
|
|
1669
1682
|
};
|
|
1670
1683
|
};
|
|
1671
1684
|
};
|
|
1672
|
-
|
|
1685
|
+
SupplierRegionsController_findOne: {
|
|
1673
1686
|
parameters: {
|
|
1674
1687
|
query?: never;
|
|
1675
1688
|
header?: never;
|
|
@@ -1678,11 +1691,7 @@ export interface operations {
|
|
|
1678
1691
|
};
|
|
1679
1692
|
cookie?: never;
|
|
1680
1693
|
};
|
|
1681
|
-
requestBody
|
|
1682
|
-
content: {
|
|
1683
|
-
"application/json": components["schemas"]["UpdateSupplierRegionDto"];
|
|
1684
|
-
};
|
|
1685
|
-
};
|
|
1694
|
+
requestBody?: never;
|
|
1686
1695
|
responses: {
|
|
1687
1696
|
200: {
|
|
1688
1697
|
headers: {
|
|
@@ -1692,45 +1701,31 @@ export interface operations {
|
|
|
1692
1701
|
"application/json": components["schemas"]["SupplierRegionDto"];
|
|
1693
1702
|
};
|
|
1694
1703
|
};
|
|
1695
|
-
/** @description When the
|
|
1696
|
-
|
|
1704
|
+
/** @description When the request is invalid */
|
|
1705
|
+
400: {
|
|
1697
1706
|
headers: {
|
|
1698
1707
|
[name: string]: unknown;
|
|
1699
1708
|
};
|
|
1700
1709
|
content: {
|
|
1701
|
-
"application/json": components["schemas"]["
|
|
1710
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1702
1711
|
};
|
|
1703
1712
|
};
|
|
1704
|
-
/** @description When
|
|
1705
|
-
|
|
1713
|
+
/** @description When authentication fails */
|
|
1714
|
+
401: {
|
|
1706
1715
|
headers: {
|
|
1707
1716
|
[name: string]: unknown;
|
|
1708
1717
|
};
|
|
1709
1718
|
content: {
|
|
1710
|
-
"application/json": components["schemas"]["
|
|
1719
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1711
1720
|
};
|
|
1712
1721
|
};
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
SupplierRegionsController_getCoverageAreas: {
|
|
1716
|
-
parameters: {
|
|
1717
|
-
query?: never;
|
|
1718
|
-
header?: never;
|
|
1719
|
-
path: {
|
|
1720
|
-
id: string;
|
|
1721
|
-
};
|
|
1722
|
-
cookie?: never;
|
|
1723
|
-
};
|
|
1724
|
-
requestBody?: never;
|
|
1725
|
-
responses: {
|
|
1726
|
-
200: {
|
|
1722
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1723
|
+
403: {
|
|
1727
1724
|
headers: {
|
|
1728
1725
|
[name: string]: unknown;
|
|
1729
1726
|
};
|
|
1730
1727
|
content: {
|
|
1731
|
-
"application/json":
|
|
1732
|
-
data: components["schemas"]["CoverageAreaDto"][];
|
|
1733
|
-
};
|
|
1728
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1734
1729
|
};
|
|
1735
1730
|
};
|
|
1736
1731
|
/** @description When the supplier region is not found */
|
|
@@ -1753,7 +1748,7 @@ export interface operations {
|
|
|
1753
1748
|
};
|
|
1754
1749
|
};
|
|
1755
1750
|
};
|
|
1756
|
-
|
|
1751
|
+
SupplierRegionsController_update: {
|
|
1757
1752
|
parameters: {
|
|
1758
1753
|
query?: never;
|
|
1759
1754
|
header?: never;
|
|
@@ -1764,67 +1759,46 @@ export interface operations {
|
|
|
1764
1759
|
};
|
|
1765
1760
|
requestBody: {
|
|
1766
1761
|
content: {
|
|
1767
|
-
"application/json": components["schemas"]["
|
|
1762
|
+
"application/json": components["schemas"]["UpdateSupplierRegionDto"];
|
|
1768
1763
|
};
|
|
1769
1764
|
};
|
|
1770
1765
|
responses: {
|
|
1771
|
-
|
|
1772
|
-
headers: {
|
|
1773
|
-
[name: string]: unknown;
|
|
1774
|
-
};
|
|
1775
|
-
content: {
|
|
1776
|
-
"application/json": components["schemas"]["CoverageAreaDto"];
|
|
1777
|
-
};
|
|
1778
|
-
};
|
|
1779
|
-
/** @description When the supplier or region is not found */
|
|
1780
|
-
404: {
|
|
1766
|
+
200: {
|
|
1781
1767
|
headers: {
|
|
1782
1768
|
[name: string]: unknown;
|
|
1783
1769
|
};
|
|
1784
1770
|
content: {
|
|
1785
|
-
"application/json": components["schemas"]["
|
|
1771
|
+
"application/json": components["schemas"]["SupplierRegionDto"];
|
|
1786
1772
|
};
|
|
1787
1773
|
};
|
|
1788
|
-
/** @description When the request is
|
|
1789
|
-
|
|
1774
|
+
/** @description When the request is invalid */
|
|
1775
|
+
400: {
|
|
1790
1776
|
headers: {
|
|
1791
1777
|
[name: string]: unknown;
|
|
1792
1778
|
};
|
|
1793
1779
|
content: {
|
|
1794
|
-
"application/json": components["schemas"]["
|
|
1780
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1795
1781
|
};
|
|
1796
1782
|
};
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
CoverageAreasController_findOne: {
|
|
1800
|
-
parameters: {
|
|
1801
|
-
query?: never;
|
|
1802
|
-
header?: never;
|
|
1803
|
-
path: {
|
|
1804
|
-
id: string;
|
|
1805
|
-
};
|
|
1806
|
-
cookie?: never;
|
|
1807
|
-
};
|
|
1808
|
-
requestBody?: never;
|
|
1809
|
-
responses: {
|
|
1810
|
-
200: {
|
|
1783
|
+
/** @description When authentication fails */
|
|
1784
|
+
401: {
|
|
1811
1785
|
headers: {
|
|
1812
1786
|
[name: string]: unknown;
|
|
1813
1787
|
};
|
|
1814
1788
|
content: {
|
|
1815
|
-
"application/json": components["schemas"]["
|
|
1789
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1816
1790
|
};
|
|
1817
1791
|
};
|
|
1818
|
-
/** @description When the
|
|
1819
|
-
|
|
1792
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1793
|
+
403: {
|
|
1820
1794
|
headers: {
|
|
1821
1795
|
[name: string]: unknown;
|
|
1822
1796
|
};
|
|
1823
1797
|
content: {
|
|
1824
|
-
"application/json": components["schemas"]["
|
|
1798
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1825
1799
|
};
|
|
1826
1800
|
};
|
|
1827
|
-
/** @description When the
|
|
1801
|
+
/** @description When the supplier region is not found */
|
|
1828
1802
|
404: {
|
|
1829
1803
|
headers: {
|
|
1830
1804
|
[name: string]: unknown;
|
|
@@ -1844,7 +1818,7 @@ export interface operations {
|
|
|
1844
1818
|
};
|
|
1845
1819
|
};
|
|
1846
1820
|
};
|
|
1847
|
-
|
|
1821
|
+
SupplierRegionsController_getCoverageAreas: {
|
|
1848
1822
|
parameters: {
|
|
1849
1823
|
query?: never;
|
|
1850
1824
|
header?: never;
|
|
@@ -1855,11 +1829,15 @@ export interface operations {
|
|
|
1855
1829
|
};
|
|
1856
1830
|
requestBody?: never;
|
|
1857
1831
|
responses: {
|
|
1858
|
-
|
|
1832
|
+
200: {
|
|
1859
1833
|
headers: {
|
|
1860
1834
|
[name: string]: unknown;
|
|
1861
1835
|
};
|
|
1862
|
-
content
|
|
1836
|
+
content: {
|
|
1837
|
+
"application/json": {
|
|
1838
|
+
data: components["schemas"]["CoverageAreaDto"][];
|
|
1839
|
+
};
|
|
1840
|
+
};
|
|
1863
1841
|
};
|
|
1864
1842
|
/** @description When the request is invalid */
|
|
1865
1843
|
400: {
|
|
@@ -1870,7 +1848,25 @@ export interface operations {
|
|
|
1870
1848
|
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1871
1849
|
};
|
|
1872
1850
|
};
|
|
1873
|
-
/** @description When
|
|
1851
|
+
/** @description When authentication fails */
|
|
1852
|
+
401: {
|
|
1853
|
+
headers: {
|
|
1854
|
+
[name: string]: unknown;
|
|
1855
|
+
};
|
|
1856
|
+
content: {
|
|
1857
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1861
|
+
403: {
|
|
1862
|
+
headers: {
|
|
1863
|
+
[name: string]: unknown;
|
|
1864
|
+
};
|
|
1865
|
+
content: {
|
|
1866
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1867
|
+
};
|
|
1868
|
+
};
|
|
1869
|
+
/** @description When the supplier region is not found */
|
|
1874
1870
|
404: {
|
|
1875
1871
|
headers: {
|
|
1876
1872
|
[name: string]: unknown;
|
|
@@ -1890,7 +1886,7 @@ export interface operations {
|
|
|
1890
1886
|
};
|
|
1891
1887
|
};
|
|
1892
1888
|
};
|
|
1893
|
-
|
|
1889
|
+
SupplierRegionsController_createCoverageArea: {
|
|
1894
1890
|
parameters: {
|
|
1895
1891
|
query?: never;
|
|
1896
1892
|
header?: never;
|
|
@@ -1901,11 +1897,11 @@ export interface operations {
|
|
|
1901
1897
|
};
|
|
1902
1898
|
requestBody: {
|
|
1903
1899
|
content: {
|
|
1904
|
-
"application/json": components["schemas"]["
|
|
1900
|
+
"application/json": components["schemas"]["CreateCoverageAreaDto"];
|
|
1905
1901
|
};
|
|
1906
1902
|
};
|
|
1907
1903
|
responses: {
|
|
1908
|
-
|
|
1904
|
+
201: {
|
|
1909
1905
|
headers: {
|
|
1910
1906
|
[name: string]: unknown;
|
|
1911
1907
|
};
|
|
@@ -1922,7 +1918,25 @@ export interface operations {
|
|
|
1922
1918
|
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
1923
1919
|
};
|
|
1924
1920
|
};
|
|
1925
|
-
/** @description When
|
|
1921
|
+
/** @description When authentication fails */
|
|
1922
|
+
401: {
|
|
1923
|
+
headers: {
|
|
1924
|
+
[name: string]: unknown;
|
|
1925
|
+
};
|
|
1926
|
+
content: {
|
|
1927
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
1928
|
+
};
|
|
1929
|
+
};
|
|
1930
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
1931
|
+
403: {
|
|
1932
|
+
headers: {
|
|
1933
|
+
[name: string]: unknown;
|
|
1934
|
+
};
|
|
1935
|
+
content: {
|
|
1936
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
/** @description When the supplier or region is not found */
|
|
1926
1940
|
404: {
|
|
1927
1941
|
headers: {
|
|
1928
1942
|
[name: string]: unknown;
|
|
@@ -1942,12 +1956,19 @@ export interface operations {
|
|
|
1942
1956
|
};
|
|
1943
1957
|
};
|
|
1944
1958
|
};
|
|
1945
|
-
|
|
1959
|
+
SuppliersController_findAll: {
|
|
1946
1960
|
parameters: {
|
|
1947
1961
|
query?: {
|
|
1948
1962
|
page?: number;
|
|
1949
1963
|
limit?: number;
|
|
1950
|
-
|
|
1964
|
+
"organization.id"?: string;
|
|
1965
|
+
name?: string;
|
|
1966
|
+
"status.code"?: "ACTIVE" | "INACTIVE";
|
|
1967
|
+
"aspects.minPpw"?: number;
|
|
1968
|
+
"aspects.supportedProducts"?: "SOLAR" | "STORAGE";
|
|
1969
|
+
"aspects.tier"?: "PLATINUM" | "ELITE" | "PRO" | "CERTIFIED";
|
|
1970
|
+
"regions.region"?: string;
|
|
1971
|
+
"regions.capacity"?: number;
|
|
1951
1972
|
};
|
|
1952
1973
|
header?: never;
|
|
1953
1974
|
path?: never;
|
|
@@ -1961,12 +1982,12 @@ export interface operations {
|
|
|
1961
1982
|
};
|
|
1962
1983
|
content: {
|
|
1963
1984
|
"application/json": {
|
|
1964
|
-
data: components["schemas"]["
|
|
1985
|
+
data: components["schemas"]["SupplierDto"][];
|
|
1965
1986
|
paging: components["schemas"]["PagingDto"];
|
|
1966
1987
|
};
|
|
1967
1988
|
};
|
|
1968
1989
|
};
|
|
1969
|
-
/** @description When the
|
|
1990
|
+
/** @description When the request is invalid */
|
|
1970
1991
|
400: {
|
|
1971
1992
|
headers: {
|
|
1972
1993
|
[name: string]: unknown;
|
|
@@ -2004,7 +2025,7 @@ export interface operations {
|
|
|
2004
2025
|
};
|
|
2005
2026
|
};
|
|
2006
2027
|
};
|
|
2007
|
-
|
|
2028
|
+
SuppliersController_create: {
|
|
2008
2029
|
parameters: {
|
|
2009
2030
|
query?: never;
|
|
2010
2031
|
header?: never;
|
|
@@ -2013,7 +2034,7 @@ export interface operations {
|
|
|
2013
2034
|
};
|
|
2014
2035
|
requestBody: {
|
|
2015
2036
|
content: {
|
|
2016
|
-
"application/json": components["schemas"]["
|
|
2037
|
+
"application/json": components["schemas"]["CreateSupplierDto"];
|
|
2017
2038
|
};
|
|
2018
2039
|
};
|
|
2019
2040
|
responses: {
|
|
@@ -2022,7 +2043,7 @@ export interface operations {
|
|
|
2022
2043
|
[name: string]: unknown;
|
|
2023
2044
|
};
|
|
2024
2045
|
content: {
|
|
2025
|
-
"application/json": components["schemas"]["
|
|
2046
|
+
"application/json": components["schemas"]["SupplierDto"];
|
|
2026
2047
|
};
|
|
2027
2048
|
};
|
|
2028
2049
|
/** @description When the request is invalid */
|
|
@@ -2052,7 +2073,7 @@ export interface operations {
|
|
|
2052
2073
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2053
2074
|
};
|
|
2054
2075
|
};
|
|
2055
|
-
/** @description When
|
|
2076
|
+
/** @description When the supplier already exists */
|
|
2056
2077
|
409: {
|
|
2057
2078
|
headers: {
|
|
2058
2079
|
[name: string]: unknown;
|
|
@@ -2072,7 +2093,7 @@ export interface operations {
|
|
|
2072
2093
|
};
|
|
2073
2094
|
};
|
|
2074
2095
|
};
|
|
2075
|
-
|
|
2096
|
+
SuppliersController_findOne: {
|
|
2076
2097
|
parameters: {
|
|
2077
2098
|
query?: never;
|
|
2078
2099
|
header?: never;
|
|
@@ -2088,7 +2109,7 @@ export interface operations {
|
|
|
2088
2109
|
[name: string]: unknown;
|
|
2089
2110
|
};
|
|
2090
2111
|
content: {
|
|
2091
|
-
"application/json": components["schemas"]["
|
|
2112
|
+
"application/json": components["schemas"]["SupplierDto"];
|
|
2092
2113
|
};
|
|
2093
2114
|
};
|
|
2094
2115
|
/** @description When the ID is invalid */
|
|
@@ -2118,7 +2139,7 @@ export interface operations {
|
|
|
2118
2139
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2119
2140
|
};
|
|
2120
2141
|
};
|
|
2121
|
-
/** @description When the
|
|
2142
|
+
/** @description When the supplier is not found */
|
|
2122
2143
|
404: {
|
|
2123
2144
|
headers: {
|
|
2124
2145
|
[name: string]: unknown;
|
|
@@ -2138,7 +2159,7 @@ export interface operations {
|
|
|
2138
2159
|
};
|
|
2139
2160
|
};
|
|
2140
2161
|
};
|
|
2141
|
-
|
|
2162
|
+
SuppliersController_update: {
|
|
2142
2163
|
parameters: {
|
|
2143
2164
|
query?: never;
|
|
2144
2165
|
header?: never;
|
|
@@ -2149,7 +2170,7 @@ export interface operations {
|
|
|
2149
2170
|
};
|
|
2150
2171
|
requestBody: {
|
|
2151
2172
|
content: {
|
|
2152
|
-
"application/json": components["schemas"]["
|
|
2173
|
+
"application/json": components["schemas"]["UpdateSupplierDto"];
|
|
2153
2174
|
};
|
|
2154
2175
|
};
|
|
2155
2176
|
responses: {
|
|
@@ -2158,7 +2179,77 @@ export interface operations {
|
|
|
2158
2179
|
[name: string]: unknown;
|
|
2159
2180
|
};
|
|
2160
2181
|
content: {
|
|
2161
|
-
"application/json": components["schemas"]["
|
|
2182
|
+
"application/json": components["schemas"]["SupplierDto"];
|
|
2183
|
+
};
|
|
2184
|
+
};
|
|
2185
|
+
/** @description When the request is invalid */
|
|
2186
|
+
400: {
|
|
2187
|
+
headers: {
|
|
2188
|
+
[name: string]: unknown;
|
|
2189
|
+
};
|
|
2190
|
+
content: {
|
|
2191
|
+
"application/json": components["schemas"]["BadRequestErrorDto"];
|
|
2192
|
+
};
|
|
2193
|
+
};
|
|
2194
|
+
/** @description When authentication fails */
|
|
2195
|
+
401: {
|
|
2196
|
+
headers: {
|
|
2197
|
+
[name: string]: unknown;
|
|
2198
|
+
};
|
|
2199
|
+
content: {
|
|
2200
|
+
"application/json": components["schemas"]["UnauthorizedErrorDto"];
|
|
2201
|
+
};
|
|
2202
|
+
};
|
|
2203
|
+
/** @description When the requesting user is not allowed to perform this action */
|
|
2204
|
+
403: {
|
|
2205
|
+
headers: {
|
|
2206
|
+
[name: string]: unknown;
|
|
2207
|
+
};
|
|
2208
|
+
content: {
|
|
2209
|
+
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2210
|
+
};
|
|
2211
|
+
};
|
|
2212
|
+
/** @description When the supplier is not found */
|
|
2213
|
+
404: {
|
|
2214
|
+
headers: {
|
|
2215
|
+
[name: string]: unknown;
|
|
2216
|
+
};
|
|
2217
|
+
content: {
|
|
2218
|
+
"application/json": components["schemas"]["NotFoundErrorDto"];
|
|
2219
|
+
};
|
|
2220
|
+
};
|
|
2221
|
+
/** @description When the request is valid, but something goes wrong on the server */
|
|
2222
|
+
500: {
|
|
2223
|
+
headers: {
|
|
2224
|
+
[name: string]: unknown;
|
|
2225
|
+
};
|
|
2226
|
+
content: {
|
|
2227
|
+
"application/json": components["schemas"]["InternalServerErrorDto"];
|
|
2228
|
+
};
|
|
2229
|
+
};
|
|
2230
|
+
};
|
|
2231
|
+
};
|
|
2232
|
+
SuppliersController_updateStatus: {
|
|
2233
|
+
parameters: {
|
|
2234
|
+
query?: never;
|
|
2235
|
+
header?: never;
|
|
2236
|
+
path: {
|
|
2237
|
+
id: string;
|
|
2238
|
+
};
|
|
2239
|
+
cookie?: never;
|
|
2240
|
+
};
|
|
2241
|
+
requestBody: {
|
|
2242
|
+
content: {
|
|
2243
|
+
"application/json": components["schemas"]["UpdateSupplierStatusDto"];
|
|
2244
|
+
};
|
|
2245
|
+
};
|
|
2246
|
+
responses: {
|
|
2247
|
+
200: {
|
|
2248
|
+
headers: {
|
|
2249
|
+
[name: string]: unknown;
|
|
2250
|
+
};
|
|
2251
|
+
content: {
|
|
2252
|
+
"application/json": components["schemas"]["SupplierDto"];
|
|
2162
2253
|
};
|
|
2163
2254
|
};
|
|
2164
2255
|
/** @description When the ID or body request is invalid */
|
|
@@ -2188,7 +2279,7 @@ export interface operations {
|
|
|
2188
2279
|
"application/json": components["schemas"]["ForbiddenErrorDto"];
|
|
2189
2280
|
};
|
|
2190
2281
|
};
|
|
2191
|
-
/** @description When the
|
|
2282
|
+
/** @description When the supplier is not found */
|
|
2192
2283
|
404: {
|
|
2193
2284
|
headers: {
|
|
2194
2285
|
[name: string]: unknown;
|