@trusted-solutions/sdit.models 0.22.12 → 0.22.13

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,6 +25,13 @@ export interface GetCurrentStoreContractLimitResponse {
25
25
  contractId: string;
26
26
  eachLimits: PlanLimits;
27
27
  }
28
+ /**
29
+ * Get Contract by subscriptionId use case
30
+ */
31
+ export interface GetContractBySubscriptionIdRequest {
32
+ subscriptionId: string;
33
+ }
34
+ export declare type GetContractBySubscriptionIdResponse = Contract;
28
35
  /**
29
36
  * Create Contract use case
30
37
  */
@@ -46,7 +53,7 @@ export interface UpdateContractPlanRequest {
46
53
  contractId: string;
47
54
  planId: string;
48
55
  /**
49
- * Will ignore `planId` when used.
56
+ * Will ignore `planId` if provided.
50
57
  */
51
58
  planIds?: string[];
52
59
  }
@@ -18,10 +18,10 @@ export declare type ContractCore = {
18
18
  /** 不給: 由後端參考plan給值; 給了: 後端直接用這個值 */
19
19
  endedAt?: number;
20
20
  planId: string;
21
+ planIds?: string[];
21
22
  storeId: string;
22
23
  ownerCognitoUserId: string;
23
24
  subscriptionId?: string;
24
- planIds?: string[];
25
25
  };
26
26
  export declare type Contract = {
27
27
  id: string;
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@trusted-solutions/sdit.models",
3
- "version": "0.22.12",
3
+ "version": "0.22.13",
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": {
7
7
  "build": "tsc -p ./tsconfig.lib.json",
8
- "postbuild": "copyfiles ./package.json ../../dist/sdit-model-lib"
8
+ "postbuild": "npx copyfiles ./package.json ../../dist/sdit-model-lib"
9
9
  },
10
10
  "repository": {
11
11
  "type": "git",
@@ -20,7 +20,6 @@
20
20
  },
21
21
  "devDependencies": {
22
22
  "@rollup/plugin-node-resolve": "^11.2.1",
23
- "@types/resolve": "^1.20.0",
24
- "copyfiles": "^2.4.1"
23
+ "@types/resolve": "^1.20.0"
25
24
  }
26
25
  }