@trusted-solutions/sdit.models 0.22.12 → 0.22.14
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/lambda/contract.d.ts +11 -2
- package/models/contract.d.ts +1 -1
- package/package.json +3 -4
package/lambda/contract.d.ts
CHANGED
|
@@ -25,10 +25,19 @@ 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
|
*/
|
|
31
|
-
export
|
|
38
|
+
export interface CreateContractRequest extends ContractCore {
|
|
39
|
+
forceCreate?: boolean;
|
|
40
|
+
}
|
|
32
41
|
export declare type CreateContractResponse = Contract;
|
|
33
42
|
/**
|
|
34
43
|
* Update Contract Duration use case
|
|
@@ -46,7 +55,7 @@ export interface UpdateContractPlanRequest {
|
|
|
46
55
|
contractId: string;
|
|
47
56
|
planId: string;
|
|
48
57
|
/**
|
|
49
|
-
* Will ignore `planId`
|
|
58
|
+
* Will ignore `planId` if provided.
|
|
50
59
|
*/
|
|
51
60
|
planIds?: string[];
|
|
52
61
|
}
|
package/models/contract.d.ts
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "0.22.14",
|
|
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
|
}
|