@compassdigital/sdk.typescript 3.0.0-rc.2 → 3.0.0-rc.3

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.
@@ -25,3 +25,20 @@ export type PostFileResponse = File;
25
25
  export interface PostFileRequest {
26
26
  body: PostFileBody;
27
27
  }
28
+
29
+ // DELETE /file - Delete a file from CDL S3
30
+
31
+ export interface DeleteFileBody {
32
+ // Specify the bucket name
33
+ bucket_name: string;
34
+ // Specify the full S3 file path
35
+ file_path: string;
36
+ }
37
+
38
+ export interface DeleteFileResponse {
39
+ success?: boolean;
40
+ }
41
+
42
+ export interface DeleteFileRequest {
43
+ body: DeleteFileBody;
44
+ }
@@ -1235,3 +1235,21 @@ export type GetLocationBrandExternalResponse = Location;
1235
1235
  export interface GetLocationBrandExternalRequest
1236
1236
  extends GetLocationBrandExternalQuery,
1237
1237
  GetLocationBrandExternalPath {}
1238
+
1239
+ // DELETE /location/record/{id} - Delete a Brand, Location, Group, or MultiGroup
1240
+
1241
+ export interface DeleteLocationRecordPath {
1242
+ // brand, location, group, or multigroup id
1243
+ id: string;
1244
+ }
1245
+
1246
+ export interface DeleteLocationRecordQuery {
1247
+ // Don't delete the record
1248
+ dryrun?: boolean;
1249
+ }
1250
+
1251
+ export type DeleteLocationRecordResponse = any;
1252
+
1253
+ export interface DeleteLocationRecordRequest
1254
+ extends DeleteLocationRecordQuery,
1255
+ DeleteLocationRecordPath {}
@@ -98,14 +98,17 @@ export interface Order {
98
98
  ready?: boolean;
99
99
  out_for_delivery?: boolean;
100
100
  delivered?: boolean;
101
+ checkin_order?: boolean;
101
102
  };
102
103
  date?: {
104
+ accepted?: string;
103
105
  created?: string;
104
106
  modified?: string;
105
107
  should_start?: string;
106
108
  completion_warning?: string;
107
109
  ready?: string;
108
110
  started?: string;
111
+ show_as_active_until?: string;
109
112
  };
110
113
  pickup?: string;
111
114
  pickup_name?: string;
@@ -19,6 +19,7 @@ export interface User {
19
19
  };
20
20
  birthday?: string;
21
21
  password?: string;
22
+ // User phone number
22
23
  phone?: number;
23
24
  // realm
24
25
  realm?: string;
@@ -596,7 +597,31 @@ export interface PutUserVerifyUserEmailRequest extends PutUserVerifyUserEmailPat
596
597
  body: PutUserVerifyUserEmailBody;
597
598
  }
598
599
 
599
- // PUT /user/{id}/verification/phone - Send phone verification to user
600
+ // POST /user/{id}/verification/phone - Send phone verification to user
601
+
602
+ export interface PostUserVerificationPhonePath {
603
+ // realm
604
+ id: string;
605
+ }
606
+
607
+ export interface PostUserVerificationPhoneQuery {
608
+ // The language of the sms, currently en, fr supported.
609
+ lang?: string;
610
+ }
611
+
612
+ export interface PostUserVerificationPhoneBody {
613
+ phone: string;
614
+ }
615
+
616
+ export type PostUserVerificationPhoneResponse = success;
617
+
618
+ export interface PostUserVerificationPhoneRequest
619
+ extends PostUserVerificationPhoneQuery,
620
+ PostUserVerificationPhonePath {
621
+ body: PostUserVerificationPhoneBody;
622
+ }
623
+
624
+ // PUT /user/{id}/verification/phone - Attempt phone verification for user
600
625
 
601
626
  export interface PutUserVerificationPhonePath {
602
627
  // realm
@@ -604,8 +629,8 @@ export interface PutUserVerificationPhonePath {
604
629
  }
605
630
 
606
631
  export interface PutUserVerificationPhoneBody {
607
- // User phone number to be verified
608
- phone: string;
632
+ // Phone verification code
633
+ verification_code: string;
609
634
  }
610
635
 
611
636
  export type PutUserVerificationPhoneResponse = success;