@artisan-commerce/types 0.14.0-canary.2 → 0.14.0-canary.21

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.
Files changed (87) hide show
  1. package/CHANGELOG.md +167 -0
  2. package/dist/bundle.d.ts +2945 -0
  3. package/package.json +18 -12
  4. package/build/index.d.ts +0 -26
  5. package/build/index.js +0 -40
  6. package/build/index.js.map +0 -1
  7. package/build/types/account.types.d.ts +0 -17
  8. package/build/types/account.types.js +0 -4
  9. package/build/types/account.types.js.map +0 -1
  10. package/build/types/app.types.d.ts +0 -153
  11. package/build/types/app.types.js +0 -4
  12. package/build/types/app.types.js.map +0 -1
  13. package/build/types/artisnDB.types.d.ts +0 -29
  14. package/build/types/artisnDB.types.js +0 -4
  15. package/build/types/artisnDB.types.js.map +0 -1
  16. package/build/types/banner.types.d.ts +0 -97
  17. package/build/types/banner.types.js +0 -4
  18. package/build/types/banner.types.js.map +0 -1
  19. package/build/types/billingData.types.d.ts +0 -39
  20. package/build/types/billingData.types.js +0 -4
  21. package/build/types/billingData.types.js.map +0 -1
  22. package/build/types/catalogue.types.d.ts +0 -16
  23. package/build/types/catalogue.types.js +0 -4
  24. package/build/types/catalogue.types.js.map +0 -1
  25. package/build/types/category.types.d.ts +0 -33
  26. package/build/types/category.types.js +0 -4
  27. package/build/types/category.types.js.map +0 -1
  28. package/build/types/common.types.d.ts +0 -36
  29. package/build/types/common.types.js +0 -4
  30. package/build/types/common.types.js.map +0 -1
  31. package/build/types/country.types.d.ts +0 -51
  32. package/build/types/country.types.js +0 -4
  33. package/build/types/country.types.js.map +0 -1
  34. package/build/types/coupon.types.d.ts +0 -112
  35. package/build/types/coupon.types.js +0 -4
  36. package/build/types/coupon.types.js.map +0 -1
  37. package/build/types/currency.types.d.ts +0 -7
  38. package/build/types/currency.types.js +0 -4
  39. package/build/types/currency.types.js.map +0 -1
  40. package/build/types/fulfillment.types.d.ts +0 -218
  41. package/build/types/fulfillment.types.js +0 -4
  42. package/build/types/fulfillment.types.js.map +0 -1
  43. package/build/types/http.types.d.ts +0 -64
  44. package/build/types/http.types.js +0 -4
  45. package/build/types/http.types.js.map +0 -1
  46. package/build/types/image.types.d.ts +0 -82
  47. package/build/types/image.types.js +0 -4
  48. package/build/types/image.types.js.map +0 -1
  49. package/build/types/livingPlace.types.d.ts +0 -92
  50. package/build/types/livingPlace.types.js +0 -4
  51. package/build/types/livingPlace.types.js.map +0 -1
  52. package/build/types/notification.types.d.ts +0 -21
  53. package/build/types/notification.types.js +0 -4
  54. package/build/types/notification.types.js.map +0 -1
  55. package/build/types/order.types.d.ts +0 -157
  56. package/build/types/order.types.js +0 -3
  57. package/build/types/order.types.js.map +0 -1
  58. package/build/types/payment.types.d.ts +0 -97
  59. package/build/types/payment.types.js +0 -4
  60. package/build/types/payment.types.js.map +0 -1
  61. package/build/types/product.types.d.ts +0 -299
  62. package/build/types/product.types.js +0 -4
  63. package/build/types/product.types.js.map +0 -1
  64. package/build/types/settings.types.d.ts +0 -23
  65. package/build/types/settings.types.js +0 -4
  66. package/build/types/settings.types.js.map +0 -1
  67. package/build/types/shippingAddress.types.d.ts +0 -73
  68. package/build/types/shippingAddress.types.js +0 -4
  69. package/build/types/shippingAddress.types.js.map +0 -1
  70. package/build/types/shippingCost.types.d.ts +0 -54
  71. package/build/types/shippingCost.types.js +0 -4
  72. package/build/types/shippingCost.types.js.map +0 -1
  73. package/build/types/shoppingCart.types.d.ts +0 -124
  74. package/build/types/shoppingCart.types.js +0 -4
  75. package/build/types/shoppingCart.types.js.map +0 -1
  76. package/build/types/store.types.d.ts +0 -198
  77. package/build/types/store.types.js +0 -4
  78. package/build/types/store.types.js.map +0 -1
  79. package/build/types/user.types.d.ts +0 -114
  80. package/build/types/user.types.js +0 -4
  81. package/build/types/user.types.js.map +0 -1
  82. package/build/types/vendor.types.d.ts +0 -23
  83. package/build/types/vendor.types.js +0 -3
  84. package/build/types/vendor.types.js.map +0 -1
  85. package/build/vendors.d.ts +0 -1
  86. package/build/vendors.js +0 -4
  87. package/build/vendors.js.map +0 -1
package/package.json CHANGED
@@ -1,16 +1,22 @@
1
1
  {
2
2
  "name": "@artisan-commerce/types",
3
3
  "description": "Artisn's types and interfaces library",
4
- "version": "0.14.0-canary.2",
5
- "main": "./build/index.js",
6
- "types": "./build/index.d.ts",
4
+ "version": "0.14.0-canary.21",
5
+ "main": "./dist/bundle.d.ts",
6
+ "module": "./dist/bundle.d.ts",
7
+ "types": "./dist/bundle.d.ts",
7
8
  "files": [
8
- "build/",
9
- "LICENSE",
10
- "README.md"
9
+ "dist"
11
10
  ],
11
+ "sideEffects": false,
12
+ "exports": {
13
+ "default": "./dist/bundle.esm.js"
14
+ },
12
15
  "scripts": {
13
- "compile": "tsc --declaration",
16
+ "compile": "rollup -c",
17
+ "dev": "yarn compile -w",
18
+ "clean": "rimraf dist",
19
+ "prebuild": "yarn clean",
14
20
  "build": "yarn compile",
15
21
  "check-types": "tsc --noEmit",
16
22
  "lint": "eslint --ignore-path .gitignore --ext .ts,.tsx .",
@@ -23,7 +29,9 @@
23
29
  "author": "Luis Eduardo Andrade",
24
30
  "license": "MIT",
25
31
  "devDependencies": {
26
- "@types/node": "^14.0.24",
32
+ "@react-native-firebase/app": "^12.8.0",
33
+ "@react-native-firebase/auth": "^12.8.0",
34
+ "@react-native-firebase/firestore": "^12.8.0",
27
35
  "@typescript-eslint/eslint-plugin": "^3.7.0",
28
36
  "@typescript-eslint/parser": "^3.7.0",
29
37
  "eslint": "^7.5.0",
@@ -37,10 +45,8 @@
37
45
  "eslint-plugin-react": "^7.20.3",
38
46
  "eslint-plugin-react-hooks": "^4.0.8",
39
47
  "firebase": "^8.1.1",
40
- "jest-extended": "^0.11.5",
41
48
  "npm-run-all": "^4.1.5",
42
- "prettier": "^2.1.2",
43
- "webpack-bundle-analyzer": "^3.9.0"
49
+ "prettier": "^2.1.2"
44
50
  },
45
- "gitHead": "61cd421cf586b967fe48a7502e1f3841c0877f0e"
51
+ "gitHead": "f59a7400808aed99f5f80a9bdaa71289ef3a3e34"
46
52
  }
package/build/index.d.ts DELETED
@@ -1,26 +0,0 @@
1
- export * from "./types/account.types";
2
- export * from "./types/app.types";
3
- export * from "./types/artisnDB.types";
4
- export * from "./types/banner.types";
5
- export * from "./types/billingData.types";
6
- export * from "./types/catalogue.types";
7
- export * from "./types/category.types";
8
- export * from "./types/common.types";
9
- export * from "./types/country.types";
10
- export * from "./types/coupon.types";
11
- export * from "./types/currency.types";
12
- export * from "./types/fulfillment.types";
13
- export * from "./types/http.types";
14
- export * from "./types/image.types";
15
- export * from "./types/livingPlace.types";
16
- export * from "./types/notification.types";
17
- export * from "./types/order.types";
18
- export * from "./types/payment.types";
19
- export * from "./types/product.types";
20
- export * from "./types/settings.types";
21
- export * from "./types/shippingAddress.types";
22
- export * from "./types/shippingCost.types";
23
- export * from "./types/shoppingCart.types";
24
- export * from "./types/store.types";
25
- export * from "./types/vendor.types";
26
- export * from "./types/user.types";
package/build/index.js DELETED
@@ -1,40 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
- }) : (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- o[k2] = m[k];
8
- }));
9
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
10
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
11
- };
12
- Object.defineProperty(exports, "__esModule", { value: true });
13
- // Main
14
- __exportStar(require("./types/account.types"), exports);
15
- __exportStar(require("./types/app.types"), exports);
16
- __exportStar(require("./types/artisnDB.types"), exports);
17
- __exportStar(require("./types/banner.types"), exports);
18
- __exportStar(require("./types/billingData.types"), exports);
19
- __exportStar(require("./types/catalogue.types"), exports);
20
- __exportStar(require("./types/category.types"), exports);
21
- __exportStar(require("./types/common.types"), exports);
22
- __exportStar(require("./types/country.types"), exports);
23
- __exportStar(require("./types/coupon.types"), exports);
24
- __exportStar(require("./types/currency.types"), exports);
25
- __exportStar(require("./types/fulfillment.types"), exports);
26
- __exportStar(require("./types/http.types"), exports);
27
- __exportStar(require("./types/image.types"), exports);
28
- __exportStar(require("./types/livingPlace.types"), exports);
29
- __exportStar(require("./types/notification.types"), exports);
30
- __exportStar(require("./types/order.types"), exports);
31
- __exportStar(require("./types/payment.types"), exports);
32
- __exportStar(require("./types/product.types"), exports);
33
- __exportStar(require("./types/settings.types"), exports);
34
- __exportStar(require("./types/shippingAddress.types"), exports);
35
- __exportStar(require("./types/shippingCost.types"), exports);
36
- __exportStar(require("./types/shoppingCart.types"), exports);
37
- __exportStar(require("./types/store.types"), exports);
38
- __exportStar(require("./types/vendor.types"), exports);
39
- __exportStar(require("./types/user.types"), exports);
40
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO;AACP,wDAAsC;AACtC,oDAAkC;AAClC,yDAAuC;AACvC,uDAAqC;AACrC,4DAA0C;AAC1C,0DAAwC;AACxC,yDAAuC;AACvC,uDAAqC;AACrC,wDAAsC;AACtC,uDAAqC;AACrC,yDAAuC;AACvC,4DAA0C;AAC1C,qDAAmC;AACnC,sDAAoC;AACpC,4DAA0C;AAC1C,6DAA2C;AAC3C,sDAAoC;AACpC,wDAAsC;AACtC,wDAAsC;AACtC,yDAAuC;AACvC,gEAA8C;AAC9C,6DAA2C;AAC3C,6DAA2C;AAC3C,sDAAoC;AACpC,uDAAqC;AACrC,qDAAmC"}
@@ -1,17 +0,0 @@
1
- import { CDNImage } from "./image.types";
2
- /**
3
- * Representation of a Commerce Account.
4
- *
5
- * @interface Account
6
- * @since 0.5.14
7
- */
8
- export interface Account {
9
- /** Artisn's account unique identifier */
10
- accountId: number;
11
- /** Account's name */
12
- name: string;
13
- /** Account's description */
14
- description?: string;
15
- /** Account's images, see {@link CDNImage} for further information */
16
- images: CDNImage[];
17
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Account types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=account.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"account.types.js","sourceRoot":"","sources":["../../src/types/account.types.ts"],"names":[],"mappings":";AAAA,+BAA+B"}
@@ -1,153 +0,0 @@
1
- import firebase from "firebase";
2
- /**
3
- * The ArtisnApp controls the app connection with the DBs and its settings.
4
- *
5
- * @typedef ArtisnApp
6
- * @since 0.5.14
7
- */
8
- export declare type ArtisnApp = ArtisnAppWeb | ArtisnAppRN;
9
- /**
10
- * The ArtisnAppWeb orchestrate the connections of the app with the DB, server and its settings.
11
- *
12
- * @interface ArtisnAppWeb
13
- * @since 0.5.14
14
- */
15
- export interface ArtisnAppWeb {
16
- /** App's name */
17
- name: firebase.app.App["name"];
18
- /** Artisn's account API URL */
19
- apiURL: string;
20
- /** Artisn app settings configuration, see {@link ArtisnSettings} */
21
- settings: ArtisnSettings;
22
- /** Internal configuration of App and databases */
23
- __internals__: firebase.app.App;
24
- /** ArtisnApp object internal instance */
25
- __instance__: typeof firebase;
26
- }
27
- /**
28
- * The ArtisnAppRN orchestrate the connections of the app with the DB, server and its settings.
29
- *
30
- * @interface ArtisnAppRN
31
- * @since 0.5.14
32
- */
33
- export interface ArtisnAppRN {
34
- /** Artisn's account API URL */
35
- apiURL: string;
36
- /** Internal configuration of App and databases */
37
- __internals__: RNFirebaseInstance;
38
- /** ArtisnApp object internal instance */
39
- __instance__: RNFirebaseInstance;
40
- /** Artisn app settings configuration, see {@link ArtisnSettings} */
41
- settings: ArtisnSettings;
42
- /** App's name */
43
- name: string;
44
- }
45
- /**
46
- * Settings to configure the Firebase Instance.
47
- *
48
- * @interface RNFirebaseInstance
49
- * @since 0.5.14
50
- */
51
- export interface RNFirebaseInstance {
52
- /** Auth package from react-native-auth */
53
- auth: any;
54
- /** Firestore package from react-native-auth */
55
- firestore: any;
56
- }
57
- /**
58
- * Settings to configure the Artisn app.
59
- *
60
- * @interface ArtisnSettings
61
- * @since 0.5.14
62
- */
63
- export interface ArtisnSettings {
64
- /** Artisn's account unique identifier */
65
- accountId?: number;
66
- /** Platform where the app is running, see {@link ArtisnPlatform} */
67
- platform?: ArtisnPlatform;
68
- /** App's project id */
69
- projectId: string;
70
- /** App's API key */
71
- apiKey: string;
72
- /** App's external app id */
73
- appId?: string;
74
- /** App's auth domain url */
75
- authDomain: string;
76
- }
77
- /**
78
- * Settings to configure the Artisn app react-native.
79
- *
80
- * @interface ArtisnSettingsRN
81
- * @since 0.5.14
82
- */
83
- export interface ArtisnSettingsRN {
84
- /** Platform where the app is running, see {@link ArtisnPlatform} */
85
- platform: ArtisnPlatform;
86
- /** Artisn's account unique identifier */
87
- accountId?: number;
88
- }
89
- /**
90
- * Artisn app's allowed platforms to run on.
91
- *
92
- * @typedef ArtisnPlatform
93
- * @since 0.5.14
94
- */
95
- export declare type ArtisnPlatform = "web" | "ios" | "android" | "windows" | "macos" | "call center";
96
- /**
97
- * Artisn's auth instance is the instance of the internal auth object.
98
- *
99
- * @typedef ArtisnInstanceAuth
100
- * @since 0.5.14
101
- */
102
- export declare type ArtisnInstanceAuth = typeof firebase.auth;
103
- /**
104
- * Artisn's auth object to handle providers authentication.
105
- *
106
- * @typedef ArtisnAuth
107
- * @since 0.5.14
108
- */
109
- export interface ArtisnAuth extends firebase.auth.Auth {
110
- }
111
- /**
112
- * Main artisn commerce filters.
113
- *
114
- * @interface ArtisnHints
115
- * @since 0.5.14
116
- */
117
- export interface ArtisnHints {
118
- /** Artisn's account unique identifier */
119
- accountId: string | number;
120
- /** Artisn's vendor unique identifier */
121
- vendorId?: string | number;
122
- /** Artisn's catalogue unique identifier */
123
- catalogueId?: string | number;
124
- /** Artisn's store unique identifier */
125
- storeId?: number;
126
- /** Artisn's category unique identifier */
127
- categoryId?: string | number;
128
- /** Artisn's productId unique identifier */
129
- productId?: string | number;
130
- }
131
- /**
132
- * Unrestricted allowed Artisn SDK rest api headers.
133
- *
134
- * @interface ArtisnHeaders
135
- * @since 0.5.14
136
- */
137
- export interface ArtisnHeaders {
138
- /** Platform where the app is running, see {@link ArtisnPlatform} */
139
- Platform: ArtisnPlatform;
140
- /** Artisn's account unique identifier */
141
- account: string;
142
- }
143
- /**
144
- * Restricted allowed Artisn SDK rest api headers.
145
- *
146
- * @interface ArtisnRestrictedHeaders
147
- * @since 0.5.14
148
- * @extends {{@link ArtisnHeaders}
149
- */
150
- export interface ArtisnRestrictedHeaders extends ArtisnHeaders {
151
- /** Authorization app's authentication token */
152
- Authorization: string;
153
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Artisn App types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=app.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.types.js","sourceRoot":"","sources":["../../src/types/app.types.ts"],"names":[],"mappings":";AAAA,kCAAkC"}
@@ -1,29 +0,0 @@
1
- import firebase from "firebase";
2
- /**
3
- * Artisn database object.
4
- *
5
- * @typedef ArtisnDB
6
- * @since 0.5.14
7
- */
8
- export declare type ArtisnDB = firebase.firestore.Firestore;
9
- /**
10
- * Artisn database document data object.
11
- *
12
- * @typedef ArtisnDBDocumentData
13
- * @since 0.5.14
14
- */
15
- export declare type ArtisnDBDocumentData = firebase.firestore.DocumentData;
16
- /**
17
- * The current state of a node from the Artisn DB.
18
- *
19
- * @typedef ArtisnDBQueryDocumentSnapshot
20
- * @since 0.5.14
21
- */
22
- export declare type ArtisnDBQueryDocumentSnapshot<T = ArtisnDBDocumentData> = firebase.firestore.QueryDocumentSnapshot<T>;
23
- /**
24
- * An Artisn DB collection of nodes.
25
- *
26
- * @typedef ArtisnDBCollectionReference
27
- * @since 0.5.14
28
- */
29
- export declare type ArtisnDBCollectionReference<T = ArtisnDBDocumentData> = firebase.firestore.CollectionReference<T>;
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Artisn DB types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=artisnDB.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"artisnDB.types.js","sourceRoot":"","sources":["../../src/types/artisnDB.types.ts"],"names":[],"mappings":";AAAA,iCAAiC"}
@@ -1,97 +0,0 @@
1
- import { CDNImage } from "./image.types";
2
- /**
3
- * Representation of a Commerce Banner.
4
- *
5
- * @interface Banner
6
- * @since 0.5.14
7
- */
8
- export interface Banner {
9
- /** Banner category id */
10
- banner_category_id: number;
11
- /** Banner description */
12
- banner_description: string;
13
- /** Banner qr code */
14
- banner_qr_code: string;
15
- /** Banner title */
16
- banner_title: string;
17
- /** Banner type, see {@link BannerType} */
18
- banner_type: BannerType;
19
- /** Banner image url */
20
- banner_url: string | null;
21
- /** Banner's benefits */
22
- benefits: null;
23
- /** Banner category id */
24
- category_id: number;
25
- /** Banner category name */
26
- category_name: string;
27
- /** Banner channel's id */
28
- channel_id: number;
29
- /** Banner coupon's code */
30
- coupon: null;
31
- /** Banner coupon's id */
32
- coupon_id: string | null;
33
- /** The base 64 image value, see {@link CDNImage} */
34
- image_base64: CDNImage["base64"];
35
- /** The bucket where the image is saved */
36
- image_bucket: string | null;
37
- /** he cloud where the banner is saved, see {@link CDNImage} */
38
- image_cloud_front_url: CDNImage["cloudFrontUrl"];
39
- /** Banner image's filename */
40
- image_file_name: string;
41
- /** The directory where the banner image is saved */
42
- image_key: string;
43
- /** The url where the banner image is saved */
44
- image_url: string;
45
- /** An array of banner images, see {@link BannerImage} */
46
- images: BannerImage[];
47
- /** Banner product's id */
48
- product_id: null;
49
- /** Banner product's name */
50
- product_name: null;
51
- /** Banner's section */
52
- section: null;
53
- /** Banner's scope, see {@link BannerScope} */
54
- scope: BannerScope;
55
- /** Banner stores array */
56
- stores: unknown[];
57
- /** Banner vendor's id */
58
- vendor_id: number;
59
- /** Banner vendor's name */
60
- vendor_name: string;
61
- }
62
- /**
63
- * The possible values of the banner's type.
64
- *
65
- * @typedef BannerType
66
- * @since 0.5.14
67
- */
68
- export declare type BannerType = "INFO" | "URL" | "PRODUCT" | "COUPON";
69
- /**
70
- * The possible values of the banner's scope.
71
- *
72
- * @typedef BannerScope
73
- * @since 0.5.14
74
- */
75
- export declare type BannerScope = "WEB" | "GLOBAL" | "APP";
76
- /**
77
- * Representation of a Banner image.
78
- *
79
- * @interface BannerImage
80
- * @since 0.5.14
81
- */
82
- export interface BannerImage {
83
- /** Banner's id */
84
- id: number;
85
- /** Banner image's filename */
86
- file_name: string;
87
- /** Banner image's filename */
88
- image_file_name: string;
89
- /** Banner image's directory */
90
- image_key: string;
91
- /** The url where the banner image is saved */
92
- image_url: string;
93
- /** Banner's position inside the banner images array */
94
- position: number;
95
- /** The url where the banner image is saved */
96
- url: string;
97
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Banner types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=banner.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banner.types.js","sourceRoot":"","sources":["../../src/types/banner.types.ts"],"names":[],"mappings":";AAAA,8BAA8B"}
@@ -1,39 +0,0 @@
1
- import { CountrySummary } from "./common.types";
2
- import { DocumentType } from "./common.types";
3
- /**
4
- * Representation of a Commerce Billing Data.
5
- *
6
- * @interface BillingData
7
- * @since 0.5.14
8
- */
9
- export interface BaseBillingData {
10
- /** Billing's nickname */
11
- nickname: string;
12
- /** Billing's associated user complete name */
13
- name: string;
14
- /** Billing's associated document type, see {@link DocumentType} */
15
- documentType: DocumentType;
16
- /** Billing's associated document */
17
- document: string;
18
- /** Billing's associated user address */
19
- address: string;
20
- /** Billing's associated user phone without country calling code */
21
- phone: string;
22
- /** Billing's associated user email */
23
- email: string;
24
- /** Whether or not the billing is default */
25
- default: boolean;
26
- /** It contains country id and country name, see {@link CountrySummary} */
27
- country: CountrySummary;
28
- }
29
- /**
30
- * Representation of a billing data saved on a database.
31
- *
32
- * @interface BillingData
33
- * @since 0.5.14
34
- * @extends {{@link BaseBillingData}
35
- */
36
- export interface BillingData extends BaseBillingData {
37
- /** Billing's auto generated id */
38
- id: number;
39
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Billing data types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=billingData.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billingData.types.js","sourceRoot":"","sources":["../../src/types/billingData.types.ts"],"names":[],"mappings":";AAAA,oCAAoC"}
@@ -1,16 +0,0 @@
1
- /**
2
- * Representation of a Commerce Catalogue.
3
- *
4
- * @interface Catalogue
5
- * @since 0.5.14
6
- */
7
- export interface Catalogue {
8
- /** Catalogue's id */
9
- catalogueId: string;
10
- /** Catalogue's name */
11
- name: string;
12
- /** Whether or not the catalogue is active */
13
- active: boolean;
14
- /** Catalogue's friendly name to use on front end */
15
- friendlyName?: string;
16
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Catalogue types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=catalogue.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"catalogue.types.js","sourceRoot":"","sources":["../../src/types/catalogue.types.ts"],"names":[],"mappings":";AAAA,iCAAiC"}
@@ -1,33 +0,0 @@
1
- import { CDNImage } from "./image.types";
2
- import { BaseProduct } from "./product.types";
3
- /**
4
- * Representation of a Commerce Category.
5
- *
6
- * @interface Category
7
- * @since 0.5.14
8
- */
9
- export interface Category {
10
- /** Category's id */
11
- categoryId: number;
12
- /** Category's name */
13
- name: string;
14
- /** Category image's array, see {@link CDNImage} */
15
- images: CDNImage[];
16
- /** Whether or not to display the category */
17
- displayInMenu: boolean;
18
- /** Whether or not the category should be reloaded */
19
- reload: boolean;
20
- /** Whether or not the category has subcategories */
21
- subcategories: boolean;
22
- }
23
- /**
24
- * Representation of a category which contains several base products.
25
- *
26
- * @interface CategoryWithProducts
27
- * @since 0.5.14
28
- * @extends {{@link Category}
29
- */
30
- export interface CategoryWithProducts extends Category {
31
- /** Array of base products associated with a category, see {@link BaseProduct} */
32
- products: BaseProduct[];
33
- }
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Categories types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=category.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"category.types.js","sourceRoot":"","sources":["../../src/types/category.types.ts"],"names":[],"mappings":";AAAA,kCAAkC"}
@@ -1,36 +0,0 @@
1
- /**
2
- * Representation of a generic object.
3
- *
4
- * @interface Objectify&lt;T>
5
- * @since 0.5.14
6
- * @property {T} [key: string] object key
7
- */
8
- export interface Objectify<T> {
9
- [key: string]: T;
10
- }
11
- /**
12
- * The possible values of a document type.
13
- *
14
- * @typedef DocumentType
15
- * @since 0.5.14
16
- */
17
- export declare type DocumentType = "CI" | "RUC" | "PASSPORT";
18
- /**
19
- * Representation of the country's summary.
20
- *
21
- * @interface CountrySummary
22
- * @since 0.5.14
23
- */
24
- export interface CountrySummary {
25
- /** Country's id */
26
- id: number;
27
- /** Country's name */
28
- name: string;
29
- }
30
- /**
31
- * The possible values of a week day.
32
- *
33
- * @typedef BaseWeekDay
34
- * @since 0.5.14
35
- */
36
- export declare type BaseWeekDay = "MONDAY" | "TUESDAY" | "WEDNESDAY" | "THURSDAY" | "FRIDAY" | "SATURDAY" | "SUNDAY";
@@ -1,4 +0,0 @@
1
- "use strict";
2
- // Common artisn sdk types and interfaces
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- //# sourceMappingURL=common.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"common.types.js","sourceRoot":"","sources":["../../src/types/common.types.ts"],"names":[],"mappings":";AAAA,yCAAyC"}