@nimee/shared-types 1.0.30

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,11 @@
1
+ export declare enum RoleTypeEnum {
2
+ user = 1,
3
+ reader = 2,
4
+ editor = 3,
5
+ admin = 4,
6
+ owner = 5
7
+ }
8
+ export interface CollaboratesModel {
9
+ user_id: String;
10
+ role: RoleTypeEnum;
11
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RoleTypeEnum = void 0;
4
+ var RoleTypeEnum;
5
+ (function (RoleTypeEnum) {
6
+ RoleTypeEnum[RoleTypeEnum["user"] = 1] = "user";
7
+ RoleTypeEnum[RoleTypeEnum["reader"] = 2] = "reader";
8
+ RoleTypeEnum[RoleTypeEnum["editor"] = 3] = "editor";
9
+ RoleTypeEnum[RoleTypeEnum["admin"] = 4] = "admin";
10
+ RoleTypeEnum[RoleTypeEnum["owner"] = 5] = "owner";
11
+ })(RoleTypeEnum = exports.RoleTypeEnum || (exports.RoleTypeEnum = {}));
12
+ //# sourceMappingURL=account.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.js","sourceRoot":"","sources":["../../src/account/account.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,+CAAQ,CAAA;IACR,mDAAU,CAAA;IACV,mDAAU,CAAA;IACV,iDAAS,CAAA;IACT,iDAAS,CAAA;AACX,CAAC,EANW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAMvB"}
@@ -0,0 +1 @@
1
+ export * from "./account";
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./account"), exports);
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/account/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B"}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event.js","sourceRoot":"","sources":["../../src/event/event.ts"],"names":[],"mappings":""}
File without changes
@@ -0,0 +1,2 @@
1
+ // export * from "./event";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/event/index.ts"],"names":[],"mappings":"AAAA,2BAA2B"}
@@ -0,0 +1,63 @@
1
+ export interface WooConnectorParams {
2
+ restAPIconnectorParams: {
3
+ url: string;
4
+ consumerKey: string;
5
+ consumerSecret: string;
6
+ version: string;
7
+ queryStringAuth?: boolean;
8
+ };
9
+ domain: string;
10
+ currencyCode: string;
11
+ }
12
+ export interface WooGetLatestProducts {
13
+ since?: string;
14
+ limit?: number;
15
+ imagesLimit?: number;
16
+ }
17
+ export interface WooGetProductsByIds {
18
+ ids: number[];
19
+ }
20
+ export interface WooGetProductsByTitle {
21
+ search: string;
22
+ }
23
+ export interface WooGetCollectionByName {
24
+ collection_name: string;
25
+ }
26
+ export interface WooGetBestSellers {
27
+ since: any;
28
+ imagesLimit: number;
29
+ limit?: number;
30
+ }
31
+ export interface WooGetFeedback {
32
+ product_id?: number;
33
+ rating: number;
34
+ limit?: number;
35
+ }
36
+ export interface WooGetFeedbackByProduct {
37
+ product_id: number;
38
+ }
39
+ export interface WooGetProductsIdsByCollectionId {
40
+ collectionId: number;
41
+ limit: number;
42
+ }
43
+ export interface WooGetDiscountedProductsByIds {
44
+ ids: number[];
45
+ }
46
+ export interface IAuthenticateWooStoreParams {
47
+ keyId: string;
48
+ user_id: string;
49
+ consumer_key: string;
50
+ consumer_secret: string;
51
+ key_permissions: string;
52
+ domain: string;
53
+ type: string;
54
+ }
55
+ export interface WooFinishConnectRequestParams {
56
+ keyId: string;
57
+ user_id: string;
58
+ consumer_key: string;
59
+ consumer_secret: string;
60
+ key_permissions: string;
61
+ domain: string;
62
+ uuid: string;
63
+ }
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=woo-connector-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"woo-connector-request.js","sourceRoot":"","sources":["../../src/event/woo-connector-request.ts"],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export * from "./account";
package/dist/index.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ // export * from "./event";
18
+ __exportStar(require("./account"), exports);
19
+ // export * from "./user";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2BAA2B;AAC3B,4CAA0B;AAC1B,0BAA0B"}
File without changes
@@ -0,0 +1,2 @@
1
+ // export * from "./user";
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/user/index.ts"],"names":[],"mappings":"AAAA,0BAA0B"}
File without changes
@@ -0,0 +1 @@
1
+ //# sourceMappingURL=user.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/user/user.ts"],"names":[],"mappings":""}
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "@nimee/shared-types",
3
+ "version": "1.0.30",
4
+ "description": "Types and interfaces that any service can access if needed",
5
+ "main": "dist/index.js",
6
+ "author": "dan goldberg",
7
+ "license": "ISC",
8
+ "scripts": {
9
+ "build-ts": "tsc",
10
+ "watch-ts": "tsc -w",
11
+ "build": "npm run build-ts",
12
+ "lint": "eslint -c ../../.eslintrc.js --ext .ts src/**",
13
+ "prettier-format": "prettier --config .prettierrc 'src/**/*.ts' --write",
14
+ "publish-it": "npm run build && npm publish --scope=nimee --access public"
15
+ },
16
+ "devDependencies": {
17
+ "@typescript-eslint/eslint-plugin": "^5.18.0",
18
+ "@typescript-eslint/eslint-plugin-tslint": "^5.18.0",
19
+ "@typescript-eslint/parser": "^5.18.0",
20
+ "eslint": "8.22.0",
21
+ "eslint-plugin-jsdoc": "^38.1.6",
22
+ "eslint-plugin-no-null": "^1.0.2",
23
+ "nodemon": "^1.19.1",
24
+ "typescript": "^4.8.3"
25
+ },
26
+ "types": "dist/index.d.ts",
27
+ "dependencies": {}
28
+ }
@@ -0,0 +1,11 @@
1
+ export enum RoleTypeEnum {
2
+ user = 1,
3
+ reader = 2,
4
+ editor = 3,
5
+ admin = 4,
6
+ owner = 5,
7
+ }
8
+ export interface CollaboratesModel {
9
+ user_id: String;
10
+ role: RoleTypeEnum;
11
+ }
@@ -0,0 +1 @@
1
+ export * from "./account";
File without changes
@@ -0,0 +1 @@
1
+ // export * from "./event";
package/src/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ // export * from "./event";
2
+ export * from "./account";
3
+ // export * from "./user";
@@ -0,0 +1 @@
1
+ // export * from "./user";
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "compileOnSave": true,
3
+ "compilerOptions": {
4
+ "module": "commonjs",
5
+ "esModuleInterop": true,
6
+ "declaration": true,
7
+ "target": "es6",
8
+ "noImplicitAny": true,
9
+ "skipLibCheck": true,
10
+ "moduleResolution": "node",
11
+ "sourceMap": true,
12
+ "outDir": "./dist",
13
+ "baseUrl": ".",
14
+ "paths": {
15
+ "*": [
16
+ "node_modules/*",
17
+ "src/types/*"
18
+ ]
19
+ }
20
+ },
21
+ "include": [
22
+ "src/**/*"
23
+ ],
24
+ "exclude": [
25
+ "node_modules",
26
+ "dist"
27
+ ]
28
+ }