@compassdigital/sdk.typescript 4.7.0 → 4.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.7.0",
3
+ "version": "4.9.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "devDependencies": {
48
48
  "@compassdigital/review": "^7.3.0",
49
- "@compassdigital/sdk.typescript.cli": "^4.6.0",
49
+ "@compassdigital/sdk.typescript.cli": "^4.7.0",
50
50
  "@types/jest": "^29.2.4",
51
51
  "@types/node": "^20.1.0",
52
52
  "esbuild": "^0.19.1",
package/src/index.ts CHANGED
@@ -584,8 +584,8 @@ import {
584
584
  GetMenuV3DraftBrandDiffsResponse,
585
585
  PostMenuV3DraftBrandGlobalDiffsApplyQuery,
586
586
  PostMenuV3DraftBrandGlobalDiffsApplyResponse,
587
- PostMenuV3BrandAttachmentQuery,
588
- PostMenuV3BrandAttachmentResponse,
587
+ PostMenuV3DraftBrandAttachmentQuery,
588
+ PostMenuV3DraftBrandAttachmentResponse,
589
589
  PostMenuV3BrandQuery,
590
590
  PostMenuV3BrandBody,
591
591
  PostMenuV3BrandResponse,
@@ -6135,24 +6135,24 @@ export class ServiceClient extends BaseServiceClient {
6135
6135
  }
6136
6136
 
6137
6137
  /**
6138
- * POST /menu/v3/brand/{id}/attachment/{name}
6138
+ * POST /menu/v3/draft/brand/{id}/attachment/{name}
6139
6139
  *
6140
6140
  * @param id
6141
6141
  * @param name
6142
6142
  * @param options - additional request options
6143
6143
  */
6144
- post_menu_v3_brand_attachment(
6144
+ post_menu_v3_draft_brand_attachment(
6145
6145
  id: string,
6146
6146
  name: "thumbnail",
6147
6147
  options?: {
6148
- query?: PostMenuV3BrandAttachmentQuery;
6148
+ query?: PostMenuV3DraftBrandAttachmentQuery;
6149
6149
  } & RequestOptions
6150
- ): ResponsePromise<PostMenuV3BrandAttachmentResponse> {
6150
+ ): ResponsePromise<PostMenuV3DraftBrandAttachmentResponse> {
6151
6151
  return this.request(
6152
6152
  "menu",
6153
- "post_menu_v3_brand_attachment",
6153
+ "post_menu_v3_draft_brand_attachment",
6154
6154
  "post",
6155
- `/menu/v3/brand/${id}/attachment/${name}`,
6155
+ `/menu/v3/draft/brand/${id}/attachment/${name}`,
6156
6156
  null,
6157
6157
  options
6158
6158
  );
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { RequestQuery, BaseRequest } from "./util";
5
5
 
6
- export type CreateConfig = Record<string, any>;
6
+ export type CreateConfig = any;
7
7
 
8
8
  export interface Config {
9
9
  [index: string]: any;
@@ -12,7 +12,7 @@ export interface Config {
12
12
  export interface Error {
13
13
  error?: string;
14
14
  code?: number;
15
- data?: Record<string, any>;
15
+ data?: any;
16
16
  }
17
17
 
18
18
  export interface Success {
@@ -102,6 +102,8 @@ export interface PublicMealplanConfig {
102
102
  type?: string;
103
103
  name?: string;
104
104
  tenders?: Tender[];
105
+ valid_email_domains?: string[];
106
+ note?: string;
105
107
  }
106
108
 
107
109
  export interface PrivateMealplanConfig {
@@ -221,7 +221,7 @@ export interface GetFrictionlessBrandFrictionlessStatusRequest
221
221
 
222
222
  export type PostFrictionlessQrCodeBody = CreateFrictionlessQRCodeCommand;
223
223
 
224
- export type PostFrictionlessQrCodeResponse = {};
224
+ export type PostFrictionlessQrCodeResponse = QRCodeCreationResponse;
225
225
 
226
226
  export interface PostFrictionlessQrCodeRequest extends BaseRequest {
227
227
  body: PostFrictionlessQrCodeBody;
@@ -3103,25 +3103,25 @@ export interface PostMenuV3DraftBrandGlobalDiffsApplyRequest
3103
3103
  RequestQuery<PostMenuV3DraftBrandGlobalDiffsApplyQuery>,
3104
3104
  PostMenuV3DraftBrandGlobalDiffsApplyPath {}
3105
3105
 
3106
- // POST /menu/v3/brand/{id}/attachment/{name}
3106
+ // POST /menu/v3/draft/brand/{id}/attachment/{name}
3107
3107
 
3108
- export interface PostMenuV3BrandAttachmentPath {
3108
+ export interface PostMenuV3DraftBrandAttachmentPath {
3109
3109
  id: string;
3110
3110
  name: "thumbnail";
3111
3111
  }
3112
3112
 
3113
- export interface PostMenuV3BrandAttachmentQuery {
3113
+ export interface PostMenuV3DraftBrandAttachmentQuery {
3114
3114
  "body.data"?: string;
3115
3115
  }
3116
3116
 
3117
- export interface PostMenuV3BrandAttachmentResponse {
3117
+ export interface PostMenuV3DraftBrandAttachmentResponse {
3118
3118
  status?: string;
3119
3119
  }
3120
3120
 
3121
- export interface PostMenuV3BrandAttachmentRequest
3121
+ export interface PostMenuV3DraftBrandAttachmentRequest
3122
3122
  extends BaseRequest,
3123
- RequestQuery<PostMenuV3BrandAttachmentQuery>,
3124
- PostMenuV3BrandAttachmentPath {}
3123
+ RequestQuery<PostMenuV3DraftBrandAttachmentQuery>,
3124
+ PostMenuV3DraftBrandAttachmentPath {}
3125
3125
 
3126
3126
  // POST /menu/v3/brand
3127
3127