@cloudcommerce/api 0.14.0 → 0.15.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.
- package/.turbo/turbo-build.log +2 -2
- package/.turbo/turbo-test.log +4 -4
- package/lib/api.d.ts +13 -12
- package/lib/api.js +51 -29
- package/lib/api.js.map +1 -1
- package/package.json +3 -3
- package/src/api.ts +52 -22
- package/tests/index.test.ts +18 -3
- package/{src/types → types}/brands.d.ts +1 -1
- package/{src/types → types}/carts.d.ts +5 -5
- package/{lib/types → types}/categories.d.ts +2 -2
- package/{src/types → types}/collections.d.ts +2 -2
- package/{src/types → types}/customers.d.ts +1 -1
- package/{lib/types → types}/grids.d.ts +1 -1
- package/{lib/types → types}/orders.d.ts +13 -13
- package/{lib/types → types}/products.d.ts +10 -10
- package/{src/types.ts → types.d.ts} +254 -31
- package/types.ts +1 -1
- package/lib/types/brands.d.ts +0 -157
- package/lib/types/carts.d.ts +0 -360
- package/lib/types/collections.d.ts +0 -159
- package/lib/types/customers.d.ts +0 -523
- package/lib/types.d.ts +0 -132
- package/lib/types.js +0 -2
- package/lib/types.js.map +0 -1
- package/src/types/applications.d.ts +0 -165
- package/src/types/authentications.d.ts +0 -107
- package/src/types/categories.d.ts +0 -199
- package/src/types/grids.d.ts +0 -157
- package/src/types/orders.d.ts +0 -1720
- package/src/types/products.d.ts +0 -1424
- package/src/types/stores.d.ts +0 -123
- /package/{lib/types → types}/applications.d.ts +0 -0
- /package/{lib/types → types}/authentications.d.ts +0 -0
- /package/{lib/types → types}/stores.d.ts +0 -0
package/src/types/stores.d.ts
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/**
|
|
3
|
-
* This file was automatically generated by json-schema-to-typescript.
|
|
4
|
-
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
|
|
5
|
-
* and run json-schema-to-typescript to regenerate this file.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface Stores {
|
|
9
|
-
_id: string & { length: 24 };
|
|
10
|
-
created_at: string;
|
|
11
|
-
updated_at: string;
|
|
12
|
-
store_id: number;
|
|
13
|
-
/**
|
|
14
|
-
* Store name
|
|
15
|
-
*/
|
|
16
|
-
name: string;
|
|
17
|
-
/**
|
|
18
|
-
* Simple description of store
|
|
19
|
-
*/
|
|
20
|
-
description?: string;
|
|
21
|
-
/**
|
|
22
|
-
* ID of store main segment, get options and IDs at /segments.json
|
|
23
|
-
*/
|
|
24
|
-
segment_id: number;
|
|
25
|
-
/**
|
|
26
|
-
* Responsible person or organization document type
|
|
27
|
-
*/
|
|
28
|
-
doc_type: 'CPF' | 'CNPJ';
|
|
29
|
-
/**
|
|
30
|
-
* Responsible person or organization document number (only numbers)
|
|
31
|
-
*/
|
|
32
|
-
doc_number: string;
|
|
33
|
-
/**
|
|
34
|
-
* Municipal or state registration if exists
|
|
35
|
-
*/
|
|
36
|
-
inscription_type?: 'State' | 'Municipal';
|
|
37
|
-
/**
|
|
38
|
-
* Municipal or state registration number (with characters) if exists
|
|
39
|
-
*/
|
|
40
|
-
inscription_number?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Registered company name or responsible fullname
|
|
43
|
-
*/
|
|
44
|
-
corporate_name: string;
|
|
45
|
-
/**
|
|
46
|
-
* Full registered address of company
|
|
47
|
-
*/
|
|
48
|
-
address?: string;
|
|
49
|
-
/**
|
|
50
|
-
* Financial contact phone
|
|
51
|
-
*/
|
|
52
|
-
phone?: string;
|
|
53
|
-
/**
|
|
54
|
-
* Name of company representative for commercial contact
|
|
55
|
-
*/
|
|
56
|
-
representant_name?: string;
|
|
57
|
-
/**
|
|
58
|
-
* Email address of company representative
|
|
59
|
-
*/
|
|
60
|
-
representant_email?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Public email address for news and general contact
|
|
63
|
-
*/
|
|
64
|
-
contact_email?: string;
|
|
65
|
-
/**
|
|
66
|
-
* Email address to receive notifications, invoices and vouchers
|
|
67
|
-
*/
|
|
68
|
-
financial_email: string;
|
|
69
|
-
/**
|
|
70
|
-
* Image link to shop's logo
|
|
71
|
-
*/
|
|
72
|
-
logo?: {
|
|
73
|
-
/**
|
|
74
|
-
* Image link
|
|
75
|
-
*/
|
|
76
|
-
url: string;
|
|
77
|
-
/**
|
|
78
|
-
* Image size (width x height) in px, such as 100x50 (100px width, 50px height)
|
|
79
|
-
*/
|
|
80
|
-
size?: string;
|
|
81
|
-
/**
|
|
82
|
-
* Alternative text, HTML alt tag (important for SEO)
|
|
83
|
-
*/
|
|
84
|
-
alt?: string;
|
|
85
|
-
};
|
|
86
|
-
/**
|
|
87
|
-
* Preferred sales channel domain name, with subdomain if any
|
|
88
|
-
*/
|
|
89
|
-
domain?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Preferred shop homepage link (full URI)
|
|
92
|
-
*/
|
|
93
|
-
homepage?: string;
|
|
94
|
-
/**
|
|
95
|
-
* Main colors to compose shop's visual identity
|
|
96
|
-
*/
|
|
97
|
-
brand_colors?: {
|
|
98
|
-
/**
|
|
99
|
-
* Primary color RGB code with #
|
|
100
|
-
*/
|
|
101
|
-
primary?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Secondary color RGB code with #
|
|
104
|
-
*/
|
|
105
|
-
secondary?: string;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Public contact phone
|
|
109
|
-
*/
|
|
110
|
-
contact_phone?: string;
|
|
111
|
-
/**
|
|
112
|
-
* Secondary public contact phone, commonly a cell phone number
|
|
113
|
-
*/
|
|
114
|
-
contact_cellphone?: string;
|
|
115
|
-
/**
|
|
116
|
-
* @maxItems 30
|
|
117
|
-
*/
|
|
118
|
-
sales_channels?: {
|
|
119
|
-
channel_id: string;
|
|
120
|
-
type?: 'ecommerce' | 'mobile' | 'pos' | 'button' | 'social' | 'chatbot' | 'live';
|
|
121
|
-
title?: string;
|
|
122
|
-
}[];
|
|
123
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|