@trusted-solutions/sdit.models 0.19.0-alpha.9 → 0.20.0-alpha.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.
@@ -1,5 +1,6 @@
1
1
  import { Order, Receipt, Operator } from '../models';
2
2
  import { OMMConfig, OOReasonCode, OnlinePlatformType, OMMItemContextType, OMMItemContentEntityType, SOPSContent, StoreOnlinePlatformStore, ThirdPartyStoreIntegrationType } from '../models/online-integration';
3
+ import { SingleItem } from './response';
3
4
  /**
4
5
  * 若Order為已付款時,可在accept時帶入invoiceConfig, invoice
5
6
  * 反之,則不需帶入
@@ -94,7 +95,7 @@ export interface GetStoreIdByOPSIdRequest {
94
95
  onlinePlatformType: ThirdPartyStoreIntegrationType;
95
96
  }
96
97
  export declare type GetOPSByStoreIdResponse = StoreOnlinePlatformStore;
97
- export declare type GetStoreIdByOPSIdResponse = string;
98
+ export declare type GetStoreIdByOPSIdResponse = SingleItem<string>;
98
99
  export interface UpdateSOPSContentRequest extends BaseSOPSRequest, SOPSContent {
99
100
  }
100
101
  export declare type UpdateSOPSContentResponse = null;
@@ -0,0 +1,19 @@
1
+ import { Store } from '../models';
2
+ import { OverwriteMenuResponse } from './response';
3
+ export interface GetPoskyStoreConfigRequest {
4
+ /** Posky storeId */
5
+ storeId: string;
6
+ }
7
+ export interface GetPoskyStoreConfigResponse {
8
+ owner: {
9
+ email: string;
10
+ name: string;
11
+ phone: string;
12
+ };
13
+ store: Store;
14
+ }
15
+ export interface OverwriteMenuFromIntegrationPosRequest {
16
+ /** Kiosky storeId */
17
+ storeId: string;
18
+ }
19
+ export declare type OverwriteMenuFromIntegrationPosResponse = OverwriteMenuResponse;
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=pos-integration.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pos-integration.js","sourceRoot":"","sources":["../../../projects/sdit-model-lib/src/lambda/pos-integration.ts"],"names":[],"mappings":""}
@@ -78,3 +78,10 @@ export interface SetProductAndProductAttributeRelationRequest extends StoreTempl
78
78
  productIds: string[];
79
79
  productAttributeIds: string[];
80
80
  }
81
+ /** overwrite product, productAttributes, productCategories, and productAttributeCategories */
82
+ export interface OverwriteMenuRequest extends StoreTemplateItemRequest {
83
+ products: Product[];
84
+ productAttributes: ProductAttribute[];
85
+ productCategories: ProductCategory[];
86
+ productAttributeCategories: ProductAttributeCategory[];
87
+ }
@@ -51,3 +51,4 @@ export interface SoldOutSwitchResponse {
51
51
  categoryId: string;
52
52
  soldOut: boolean;
53
53
  }
54
+ export declare type OverwriteMenuResponse = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.19.0-alpha.9",
3
+ "version": "0.20.0-alpha.0",
4
4
  "description": "TODO: Give a short introduction of your project. Let this section explain the objectives or the motivation behind this project.",
5
5
  "main": "index.js",
6
6
  "scripts": {