@compassdigital/sdk.typescript 4.6.0 → 4.7.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/manifest.json CHANGED
@@ -90,7 +90,7 @@
90
90
  },
91
91
  {
92
92
  "name": "frictionless",
93
- "swagger": "https://api.compassdigital.org/v1/frictionless/swagger-json"
93
+ "swagger": "https://api.compassdigital.org/dev/frictionless/swagger-json"
94
94
  },
95
95
  {
96
96
  "name": "ai",
@@ -101,4 +101,4 @@
101
101
  "swagger": "../../platform2/edges/centricos/swagger.json"
102
102
  }
103
103
  ]
104
- }
104
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@compassdigital/sdk.typescript",
3
- "version": "4.6.0",
3
+ "version": "4.7.0",
4
4
  "description": "Compass Digital Labs TypeScript SDK",
5
5
  "type": "commonjs",
6
6
  "main": "./lib/index.js",
package/src/index.ts CHANGED
@@ -648,6 +648,8 @@ import {
648
648
  GetMenuV3DraftCategoriesCountResponse,
649
649
  PostMenuV3DraftCategoriesBody,
650
650
  PostMenuV3DraftCategoriesResponse,
651
+ PostMenuV3DraftCategoryAttachmentQuery,
652
+ PostMenuV3DraftCategoryAttachmentResponse,
651
653
  GetMenuV3CategoryQuery,
652
654
  GetMenuV3CategoryResponse,
653
655
  GetMenuV3CategorysCountQuery,
@@ -684,16 +686,18 @@ import {
684
686
  PostMenuV3DraftItemsResponse,
685
687
  GetMenuV3DraftItemsCountQuery,
686
688
  GetMenuV3DraftItemsCountResponse,
689
+ GetMenuV3DraftItemLineRoutesQuery,
690
+ GetMenuV3DraftItemLineRoutesResponse,
687
691
  PatchMenuV3DraftItemsBulkUpdateBody,
688
692
  PatchMenuV3DraftItemsBulkUpdateResponse,
689
- PostMenuV3ItemAttachmentQuery,
690
- PostMenuV3ItemAttachmentResponse,
691
- PostMenuV3ItemsValidateBody,
692
- PostMenuV3ItemsValidateResponse,
693
- PostMenuV3ItemsImportBody,
694
- PostMenuV3ItemsImportResponse,
695
- PostMenuV3ItemsExportBody,
696
- PostMenuV3ItemsExportResponse,
693
+ PostMenuV3DraftItemAttachmentQuery,
694
+ PostMenuV3DraftItemAttachmentResponse,
695
+ PostMenuV3DraftItemsValidateBody,
696
+ PostMenuV3DraftItemsValidateResponse,
697
+ PostMenuV3DraftItemsImportBody,
698
+ PostMenuV3DraftItemsImportResponse,
699
+ PostMenuV3DraftItemsExportBody,
700
+ PostMenuV3DraftItemsExportResponse,
697
701
  GetMenuV3ItemQuery,
698
702
  GetMenuV3ItemResponse,
699
703
  GetMenuV3ItemsQuery,
@@ -773,6 +777,8 @@ import {
773
777
  GetMenuV3DraftModifiersCountResponse,
774
778
  PatchMenuV3DraftModifiersBulkUpdateBody,
775
779
  PatchMenuV3DraftModifiersBulkUpdateResponse,
780
+ PostMenuV3DraftModifiersAttachmentQuery,
781
+ PostMenuV3DraftModifiersAttachmentResponse,
776
782
  GetMenuV3ModifierQuery,
777
783
  GetMenuV3ModifierResponse,
778
784
  GetMenuV3ModifiersQuery,
@@ -854,17 +860,25 @@ import {
854
860
  } from "./interface/delivery";
855
861
 
856
862
  import {
857
- StandardCognitionEventWebhookControllerExecuteBody,
858
- StandardCognitionEventWebhookControllerExecuteResponse,
859
- CheckFrictionlessSupportControllerExecuteQuery,
860
- CheckFrictionlessSupportControllerExecuteResponse,
861
- CreateQRCodeUserCheckInControllerExecuteBody,
862
- CreateQRCodeUserCheckInControllerExecuteResponse,
863
- ListFailedCheckinsControllerExecuteQuery,
864
- ListFailedCheckinsControllerExecuteResponse,
865
- ReprocessCheckinOnErrorControllerExecuteResponse,
866
- CheckCheckinStatusControllerExecuteQuery,
867
- CheckCheckinStatusControllerExecuteResponse,
863
+ PostFrictionlessWebhookStandardcognitionBody,
864
+ PostFrictionlessWebhookStandardcognitionResponse,
865
+ PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody,
866
+ PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse,
867
+ PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody,
868
+ PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse,
869
+ GetFrictionlessBrandFrictionlessStatusQuery,
870
+ GetFrictionlessBrandFrictionlessStatusResponse,
871
+ PostFrictionlessQrCodeBody,
872
+ PostFrictionlessQrCodeResponse,
873
+ GetFrictionlessFailedCheckinsQuery,
874
+ GetFrictionlessFailedCheckinsResponse,
875
+ PostFrictionlessCheckinsReprocessResponse,
876
+ GetFrictionlessCheckinStatusQuery,
877
+ GetFrictionlessCheckinStatusResponse,
878
+ GetFrictionlessUsersPaymentIssuesQuery,
879
+ GetFrictionlessUsersPaymentIssuesResponse,
880
+ PostFrictionlessCheckinReprocessPaymentBody,
881
+ PostFrictionlessCheckinReprocessPaymentResponse,
868
882
  } from "./interface/frictionless";
869
883
 
870
884
  import {
@@ -6758,6 +6772,30 @@ export class ServiceClient extends BaseServiceClient {
6758
6772
  );
6759
6773
  }
6760
6774
 
6775
+ /**
6776
+ * POST /menu/v3/draft/category/{id}/attachment/{name}
6777
+ *
6778
+ * @param id
6779
+ * @param name
6780
+ * @param options - additional request options
6781
+ */
6782
+ post_menu_v3_draft_category_attachment(
6783
+ id: string,
6784
+ name: "thumbnail",
6785
+ options?: {
6786
+ query?: PostMenuV3DraftCategoryAttachmentQuery;
6787
+ } & RequestOptions
6788
+ ): ResponsePromise<PostMenuV3DraftCategoryAttachmentResponse> {
6789
+ return this.request(
6790
+ "menu",
6791
+ "post_menu_v3_draft_category_attachment",
6792
+ "post",
6793
+ `/menu/v3/draft/category/${id}/attachment/${name}`,
6794
+ null,
6795
+ options
6796
+ );
6797
+ }
6798
+
6761
6799
  /**
6762
6800
  * GET /menu/v3/category/{id}
6763
6801
  *
@@ -7150,6 +7188,28 @@ export class ServiceClient extends BaseServiceClient {
7150
7188
  );
7151
7189
  }
7152
7190
 
7191
+ /**
7192
+ * GET /menu/v3/draft/item/{id}/line-routes
7193
+ *
7194
+ * @param id
7195
+ * @param options - additional request options
7196
+ */
7197
+ get_menu_v3_draft_item_line_routes(
7198
+ id: string,
7199
+ options?: {
7200
+ query?: GetMenuV3DraftItemLineRoutesQuery;
7201
+ } & RequestOptions
7202
+ ): ResponsePromise<GetMenuV3DraftItemLineRoutesResponse> {
7203
+ return this.request(
7204
+ "menu",
7205
+ "get_menu_v3_draft_item_line_routes",
7206
+ "get",
7207
+ `/menu/v3/draft/item/${id}/line-routes`,
7208
+ null,
7209
+ options
7210
+ );
7211
+ }
7212
+
7153
7213
  /**
7154
7214
  * PATCH /menu/v3/draft/items/bulk-update
7155
7215
  *
@@ -7171,84 +7231,84 @@ export class ServiceClient extends BaseServiceClient {
7171
7231
  }
7172
7232
 
7173
7233
  /**
7174
- * POST /menu/v3/item/{id}/attachment/{name}
7234
+ * POST /menu/v3/draft/item/{id}/attachment/{name}
7175
7235
  *
7176
7236
  * @param id
7177
7237
  * @param name
7178
7238
  * @param options - additional request options
7179
7239
  */
7180
- post_menu_v3_item_attachment(
7240
+ post_menu_v3_draft_item_attachment(
7181
7241
  id: string,
7182
7242
  name: "thumbnail",
7183
7243
  options?: {
7184
- query?: PostMenuV3ItemAttachmentQuery;
7244
+ query?: PostMenuV3DraftItemAttachmentQuery;
7185
7245
  } & RequestOptions
7186
- ): ResponsePromise<PostMenuV3ItemAttachmentResponse> {
7246
+ ): ResponsePromise<PostMenuV3DraftItemAttachmentResponse> {
7187
7247
  return this.request(
7188
7248
  "menu",
7189
- "post_menu_v3_item_attachment",
7249
+ "post_menu_v3_draft_item_attachment",
7190
7250
  "post",
7191
- `/menu/v3/item/${id}/attachment/${name}`,
7251
+ `/menu/v3/draft/item/${id}/attachment/${name}`,
7192
7252
  null,
7193
7253
  options
7194
7254
  );
7195
7255
  }
7196
7256
 
7197
7257
  /**
7198
- * POST /menu/v3/items/validate
7258
+ * POST /menu/v3/draft/items/validate
7199
7259
  *
7200
7260
  * @param body
7201
7261
  * @param options - additional request options
7202
7262
  */
7203
- post_menu_v3_items_validate(
7204
- body: PostMenuV3ItemsValidateBody,
7263
+ post_menu_v3_draft_items_validate(
7264
+ body: PostMenuV3DraftItemsValidateBody,
7205
7265
  options?: RequestOptions
7206
- ): ResponsePromise<PostMenuV3ItemsValidateResponse> {
7266
+ ): ResponsePromise<PostMenuV3DraftItemsValidateResponse> {
7207
7267
  return this.request(
7208
7268
  "menu",
7209
- "post_menu_v3_items_validate",
7269
+ "post_menu_v3_draft_items_validate",
7210
7270
  "post",
7211
- `/menu/v3/items/validate`,
7271
+ `/menu/v3/draft/items/validate`,
7212
7272
  body,
7213
7273
  options
7214
7274
  );
7215
7275
  }
7216
7276
 
7217
7277
  /**
7218
- * POST /menu/v3/items/import
7278
+ * POST /menu/v3/draft/items/import
7219
7279
  *
7220
7280
  * @param body
7221
7281
  * @param options - additional request options
7222
7282
  */
7223
- post_menu_v3_items_import(
7224
- body: PostMenuV3ItemsImportBody,
7283
+ post_menu_v3_draft_items_import(
7284
+ body: PostMenuV3DraftItemsImportBody,
7225
7285
  options?: RequestOptions
7226
- ): ResponsePromise<PostMenuV3ItemsImportResponse> {
7286
+ ): ResponsePromise<PostMenuV3DraftItemsImportResponse> {
7227
7287
  return this.request(
7228
7288
  "menu",
7229
- "post_menu_v3_items_import",
7289
+ "post_menu_v3_draft_items_import",
7230
7290
  "post",
7231
- `/menu/v3/items/import`,
7291
+ `/menu/v3/draft/items/import`,
7232
7292
  body,
7233
7293
  options
7234
7294
  );
7235
7295
  }
7236
7296
 
7237
7297
  /**
7238
- * POST /menu/v3/items/export
7298
+ * POST /menu/v3/draft/items/export
7239
7299
  *
7240
7300
  * @param body
7241
7301
  * @param options - additional request options
7242
7302
  */
7243
- post_menu_v3_items_export(
7244
- body: PostMenuV3ItemsExportBody,
7303
+ post_menu_v3_draft_items_export(
7304
+ body: PostMenuV3DraftItemsExportBody,
7245
7305
  options?: RequestOptions
7246
- ): ResponsePromise<PostMenuV3ItemsExportResponse> {
7306
+ ): ResponsePromise<PostMenuV3DraftItemsExportResponse> {
7247
7307
  return this.request(
7248
7308
  "menu",
7249
- "post_menu_v3_items_export",
7309
+ "post_menu_v3_draft_items_export",
7250
7310
  "post",
7251
- `/menu/v3/items/export`,
7311
+ `/menu/v3/draft/items/export`,
7252
7312
  body,
7253
7313
  options
7254
7314
  );
@@ -8104,6 +8164,30 @@ export class ServiceClient extends BaseServiceClient {
8104
8164
  );
8105
8165
  }
8106
8166
 
8167
+ /**
8168
+ * POST /menu/v3/draft/modifiers/{id}/attachment/{name}
8169
+ *
8170
+ * @param id
8171
+ * @param name
8172
+ * @param options - additional request options
8173
+ */
8174
+ post_menu_v3_draft_modifiers_attachment(
8175
+ id: string,
8176
+ name: "thumbnail",
8177
+ options?: {
8178
+ query?: PostMenuV3DraftModifiersAttachmentQuery;
8179
+ } & RequestOptions
8180
+ ): ResponsePromise<PostMenuV3DraftModifiersAttachmentResponse> {
8181
+ return this.request(
8182
+ "menu",
8183
+ "post_menu_v3_draft_modifiers_attachment",
8184
+ "post",
8185
+ `/menu/v3/draft/modifiers/${id}/attachment/${name}`,
8186
+ null,
8187
+ options
8188
+ );
8189
+ }
8190
+
8107
8191
  /**
8108
8192
  * GET /menu/v3/modifier/{id}
8109
8193
  *
@@ -8759,13 +8843,13 @@ export class ServiceClient extends BaseServiceClient {
8759
8843
  * @param body
8760
8844
  * @param options - additional request options
8761
8845
  */
8762
- StandardCognitionEventWebhookController_execute(
8763
- body: StandardCognitionEventWebhookControllerExecuteBody,
8846
+ post_frictionless_webhook_standardcognition(
8847
+ body: PostFrictionlessWebhookStandardcognitionBody,
8764
8848
  options?: RequestOptions
8765
- ): ResponsePromise<StandardCognitionEventWebhookControllerExecuteResponse> {
8849
+ ): ResponsePromise<PostFrictionlessWebhookStandardcognitionResponse> {
8766
8850
  return this.request(
8767
8851
  "frictionless",
8768
- "StandardCognitionEventWebhookController_execute",
8852
+ "post_frictionless_webhook_standardcognition",
8769
8853
  "post",
8770
8854
  `/frictionless/webhook/standardcognition`,
8771
8855
  body,
@@ -8773,21 +8857,61 @@ export class ServiceClient extends BaseServiceClient {
8773
8857
  );
8774
8858
  }
8775
8859
 
8860
+ /**
8861
+ * POST /frictionless/amazon-jwo-connector/v1/identity/identity-keys - Amazon JWO Identity Key Connector
8862
+ *
8863
+ * @param body
8864
+ * @param options - additional request options
8865
+ */
8866
+ post_frictionless_amazon_jwo_connector_v1_identity_identity_keys(
8867
+ body: PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysBody,
8868
+ options?: RequestOptions
8869
+ ): ResponsePromise<PostFrictionlessAmazonJwoConnectorV1IdentityIdentityKeysResponse> {
8870
+ return this.request(
8871
+ "frictionless",
8872
+ "post_frictionless_amazon_jwo_connector_v1_identity_identity_keys",
8873
+ "post",
8874
+ `/frictionless/amazon-jwo-connector/v1/identity/identity-keys`,
8875
+ body,
8876
+ options
8877
+ );
8878
+ }
8879
+
8880
+ /**
8881
+ * POST /frictionless/amazon-jwo-connector/v1/order/purchases - Amazon JWO Ordering Connector
8882
+ *
8883
+ * @param body
8884
+ * @param options - additional request options
8885
+ */
8886
+ post_frictionless_amazon_jwo_connector_v1_order_purchases(
8887
+ body: PostFrictionlessAmazonJwoConnectorV1OrderPurchasesBody,
8888
+ options?: RequestOptions
8889
+ ): ResponsePromise<PostFrictionlessAmazonJwoConnectorV1OrderPurchasesResponse> {
8890
+ return this.request(
8891
+ "frictionless",
8892
+ "post_frictionless_amazon_jwo_connector_v1_order_purchases",
8893
+ "post",
8894
+ `/frictionless/amazon-jwo-connector/v1/order/purchases`,
8895
+ body,
8896
+ options
8897
+ );
8898
+ }
8899
+
8776
8900
  /**
8777
8901
  * GET /frictionless/brand/{id_brand}/frictionless-status - Check frictionless support of a given brand
8778
8902
  *
8779
8903
  * @param id_brand - Brand ID as Encoded CDL ID
8780
8904
  * @param options - additional request options
8781
8905
  */
8782
- CheckFrictionlessSupportController_execute(
8906
+ get_frictionless_brand_frictionless_status(
8783
8907
  id_brand: string,
8784
8908
  options?: {
8785
- query?: CheckFrictionlessSupportControllerExecuteQuery;
8909
+ query?: GetFrictionlessBrandFrictionlessStatusQuery;
8786
8910
  } & RequestOptions
8787
- ): ResponsePromise<CheckFrictionlessSupportControllerExecuteResponse> {
8911
+ ): ResponsePromise<GetFrictionlessBrandFrictionlessStatusResponse> {
8788
8912
  return this.request(
8789
8913
  "frictionless",
8790
- "CheckFrictionlessSupportController_execute",
8914
+ "get_frictionless_brand_frictionless_status",
8791
8915
  "get",
8792
8916
  `/frictionless/brand/${id_brand}/frictionless-status`,
8793
8917
  null,
@@ -8801,13 +8925,13 @@ export class ServiceClient extends BaseServiceClient {
8801
8925
  * @param body
8802
8926
  * @param options - additional request options
8803
8927
  */
8804
- CreateQRCodeUserCheckInController_execute(
8805
- body: CreateQRCodeUserCheckInControllerExecuteBody,
8928
+ post_frictionless_qr_code(
8929
+ body: PostFrictionlessQrCodeBody,
8806
8930
  options?: RequestOptions
8807
- ): ResponsePromise<CreateQRCodeUserCheckInControllerExecuteResponse> {
8931
+ ): ResponsePromise<PostFrictionlessQrCodeResponse> {
8808
8932
  return this.request(
8809
8933
  "frictionless",
8810
- "CreateQRCodeUserCheckInController_execute",
8934
+ "post_frictionless_qr_code",
8811
8935
  "post",
8812
8936
  `/frictionless/qrcode`,
8813
8937
  body,
@@ -8820,14 +8944,14 @@ export class ServiceClient extends BaseServiceClient {
8820
8944
  *
8821
8945
  * @param options - additional request options
8822
8946
  */
8823
- ListFailedCheckinsController_execute(
8947
+ get_frictionless_failed_checkins(
8824
8948
  options?: {
8825
- query?: ListFailedCheckinsControllerExecuteQuery;
8949
+ query?: GetFrictionlessFailedCheckinsQuery;
8826
8950
  } & RequestOptions
8827
- ): ResponsePromise<ListFailedCheckinsControllerExecuteResponse> {
8951
+ ): ResponsePromise<GetFrictionlessFailedCheckinsResponse> {
8828
8952
  return this.request(
8829
8953
  "frictionless",
8830
- "ListFailedCheckinsController_execute",
8954
+ "get_frictionless_failed_checkins",
8831
8955
  "get",
8832
8956
  `/frictionless/failed-checkins`,
8833
8957
  null,
@@ -8836,40 +8960,40 @@ export class ServiceClient extends BaseServiceClient {
8836
8960
  }
8837
8961
 
8838
8962
  /**
8839
- * POST /frictionless/checkin/{id_checkin}/reprocess - Reprocess checkin on error
8963
+ * POST /frictionless/checkins/{id_checkin}/reprocess - Reprocess checkin on error
8840
8964
  *
8841
- * @param id_checkin - TODO: add parameter to swagger.json
8965
+ * @param id_checkin
8842
8966
  * @param options - additional request options
8843
8967
  */
8844
- ReprocessCheckinOnErrorController_execute(
8968
+ post_frictionless_checkins_reprocess(
8845
8969
  id_checkin: string,
8846
8970
  options?: RequestOptions
8847
- ): ResponsePromise<ReprocessCheckinOnErrorControllerExecuteResponse> {
8971
+ ): ResponsePromise<PostFrictionlessCheckinsReprocessResponse> {
8848
8972
  return this.request(
8849
8973
  "frictionless",
8850
- "ReprocessCheckinOnErrorController_execute",
8974
+ "post_frictionless_checkins_reprocess",
8851
8975
  "post",
8852
- `/frictionless/checkin/${id_checkin}/reprocess`,
8976
+ `/frictionless/checkins/${id_checkin}/reprocess`,
8853
8977
  null,
8854
8978
  options
8855
8979
  );
8856
8980
  }
8857
8981
 
8858
8982
  /**
8859
- * GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn status
8983
+ * GET /frictionless/checkin/{id_checkin}/status - Fetch CheckIn Status
8860
8984
  *
8861
- * @param id_checkin - TODO: add parameter to swagger.json
8985
+ * @param id_checkin
8862
8986
  * @param options - additional request options
8863
8987
  */
8864
- CheckCheckinStatusController_execute(
8988
+ get_frictionless_checkin_status(
8865
8989
  id_checkin: string,
8866
8990
  options?: {
8867
- query?: CheckCheckinStatusControllerExecuteQuery;
8991
+ query?: GetFrictionlessCheckinStatusQuery;
8868
8992
  } & RequestOptions
8869
- ): ResponsePromise<CheckCheckinStatusControllerExecuteResponse> {
8993
+ ): ResponsePromise<GetFrictionlessCheckinStatusResponse> {
8870
8994
  return this.request(
8871
8995
  "frictionless",
8872
- "CheckCheckinStatusController_execute",
8996
+ "get_frictionless_checkin_status",
8873
8997
  "get",
8874
8998
  `/frictionless/checkin/${id_checkin}/status`,
8875
8999
  null,
@@ -8877,6 +9001,50 @@ export class ServiceClient extends BaseServiceClient {
8877
9001
  );
8878
9002
  }
8879
9003
 
9004
+ /**
9005
+ * GET /frictionless/users/{user_id}/checkins/payment-issues - List check-ins with update payment required per user
9006
+ *
9007
+ * @param user_id
9008
+ * @param options - additional request options
9009
+ */
9010
+ get_frictionless_users_payment_issues(
9011
+ user_id: string,
9012
+ options?: {
9013
+ query?: GetFrictionlessUsersPaymentIssuesQuery;
9014
+ } & RequestOptions
9015
+ ): ResponsePromise<GetFrictionlessUsersPaymentIssuesResponse> {
9016
+ return this.request(
9017
+ "frictionless",
9018
+ "get_frictionless_users_payment_issues",
9019
+ "get",
9020
+ `/frictionless/users/${user_id}/checkins/payment-issues`,
9021
+ null,
9022
+ options
9023
+ );
9024
+ }
9025
+
9026
+ /**
9027
+ * POST /frictionless/checkins/{checkin_id}/reprocess-payment - Update payment at checkin and trigger reprocessing
9028
+ *
9029
+ * @param checkin_id
9030
+ * @param body
9031
+ * @param options - additional request options
9032
+ */
9033
+ post_frictionless_checkin_reprocess_payment(
9034
+ checkin_id: string,
9035
+ body: PostFrictionlessCheckinReprocessPaymentBody,
9036
+ options?: RequestOptions
9037
+ ): ResponsePromise<PostFrictionlessCheckinReprocessPaymentResponse> {
9038
+ return this.request(
9039
+ "frictionless",
9040
+ "post_frictionless_checkin_reprocess_payment",
9041
+ "post",
9042
+ `/frictionless/checkins/${checkin_id}/reprocess-payment`,
9043
+ body,
9044
+ options
9045
+ );
9046
+ }
9047
+
8880
9048
  /**
8881
9049
  * POST /ai/language/generate - Generate text from a given prompt
8882
9050
  *
@@ -3,7 +3,7 @@
3
3
 
4
4
  import { RequestQuery, BaseRequest } from "./util";
5
5
 
6
- export type CreateConfig = any;
6
+ export type CreateConfig = Record<string, 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?: any;
15
+ data?: Record<string, any>;
16
16
  }
17
17
 
18
18
  export interface Success {