@sesamy/sesamy-js 1.19.9 → 1.19.11

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.
@@ -196,11 +196,23 @@ declare function getSignedLinks(): SignedLink[];
196
196
  export type Contract = {
197
197
  id: string;
198
198
  name: string;
199
+ userId: string;
200
+ createdAt: string;
201
+ updatedAt: string;
199
202
  price: number;
203
+ nextBillAt?: string;
204
+ nextPrice?: number;
200
205
  currency: string;
201
- status: string;
202
- manageUrl: string;
203
- createdAt: string;
206
+ manageUrl?: string;
207
+ contractDuration: "RECURRING" | "RENEWABLE" | "PERPETUAL";
208
+ recurringInterval?: "DAY" | "WEEK" | "MONTH" | "YEAR";
209
+ recurringTime?: number;
210
+ items: {
211
+ sku: string;
212
+ name: string;
213
+ purchaseOptionId?: string;
214
+ }[];
215
+ status: "DRAFT" | "PENDING" | "FORTHCOMING" | "ACTIVE" | "OVERDUE" | "EXPIRED" | "CLOSED" | "CANCELED" | "DELETED" | "VOIDED";
204
216
  };
205
217
  export type Bill = {
206
218
  id: string;
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "registry": "https://registry.npmjs.org/",
7
7
  "tag": "latest"
8
8
  },
9
- "version": "1.19.9",
9
+ "version": "1.19.11",
10
10
  "main": "dist/sesamy-js.cjs",
11
11
  "module": "dist/sesamy-js.mjs",
12
12
  "types": "dist/sesamy-js.d.ts",