@royalinvest/dto 0.32.7 → 0.33.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.
@@ -0,0 +1,7 @@
1
+ export interface IBalance {
2
+ id: string;
3
+ template_id: string;
4
+ template_name: string;
5
+ remaining_count: number;
6
+ expires_at?: Date;
7
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +1,16 @@
1
1
  export interface ICheckout {
2
- user_id: string;
3
- contract_id: string;
4
- platform_fee: number;
5
- signature_fee: number;
2
+ contract_id?: string;
3
+ template_variant_id?: string;
6
4
  email: string;
7
- product_unit_price: number;
8
- quantity: number;
9
- language: "en" | "fr";
10
- template_variants: string[];
5
+ language: string;
6
+ items: ICheckoutItem[];
7
+ }
8
+ export type ICheckoutItem = {
9
+ id: string;
11
10
  name: string;
12
11
  description: string;
13
- discount?: number;
14
- }
12
+ cover_url: string;
13
+ price: number;
14
+ quantity: number;
15
+ subTotal: number;
16
+ };
@@ -14,7 +14,7 @@ export interface IMessageGenerate {
14
14
  file_id?: string;
15
15
  isEdit?: boolean;
16
16
  contract_parties?: IContractParty[];
17
- addendum_instructions?: JSON;
17
+ drawing_instructions?: IMessageGenerateDrawingInstructions;
18
18
  }
19
19
  export interface IMessageGenerateSigned {
20
20
  party: ISignaturePartySigned;
@@ -26,3 +26,7 @@ export interface IMessageGenerateVoided {
26
26
  file_name: string;
27
27
  notify_party_email: boolean;
28
28
  }
29
+ export interface IMessageGenerateDrawingInstructions {
30
+ addendum: JSON;
31
+ attachments: JSON;
32
+ }
@@ -1,2 +1,3 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ ;
@@ -3,8 +3,5 @@ export interface ITemplateVariant {
3
3
  name: string;
4
4
  language: string;
5
5
  file_name: string;
6
- cover_url: string;
7
- price: number;
8
- platform_fee: number;
9
6
  description: string;
10
7
  }
@@ -1,7 +1,21 @@
1
1
  import { IState } from "./state";
2
+ import { ITemplateVariant } from "./template-variant";
2
3
  export interface ITemplate {
3
4
  id?: string;
4
5
  name: string;
5
6
  description: string;
7
+ price: number;
8
+ cover_image_name?: string;
9
+ cover_image_name_mime_type?: string;
10
+ is_active: boolean;
11
+ sub_description?: string;
12
+ sku?: string;
13
+ code?: string;
14
+ sale_label?: JSON;
15
+ new_label?: JSON;
16
+ price_sale?: number;
17
+ tax?: number;
18
+ images?: string[];
6
19
  state?: IState;
20
+ templateVariants?: ITemplateVariant[];
7
21
  }
package/dist/user.d.ts CHANGED
@@ -9,6 +9,7 @@ export interface IUser {
9
9
  language: string;
10
10
  is_active?: boolean;
11
11
  login_type?: string;
12
+ stripe_customer_id?: string;
12
13
  }
13
14
  export interface IAddEditUser {
14
15
  id?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@royalinvest/dto",
3
- "version": "0.32.7",
3
+ "version": "0.33.0",
4
4
  "description": "Data Transfer Objects (DTOs) to carry data between frontend and backend processes.",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",