synunu-libs 1.0.10 → 1.0.12
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/package.json +5 -11
- package/dist/constants/permission.constants.d.ts +0 -168
- package/dist/constants/permission.constants.d.ts.map +0 -1
- package/dist/constants/permission.constants.js +0 -79
- package/dist/constants/permission.constants.js.map +0 -1
- package/dist/entities/branch.entity.d.ts +0 -9
- package/dist/entities/branch.entity.d.ts.map +0 -1
- package/dist/entities/branch.entity.js +0 -44
- package/dist/entities/branch.entity.js.map +0 -1
- package/dist/entities/index.d.ts +0 -7
- package/dist/entities/index.d.ts.map +0 -1
- package/dist/entities/index.js +0 -23
- package/dist/entities/index.js.map +0 -1
- package/dist/entities/login.entity.d.ts +0 -12
- package/dist/entities/login.entity.d.ts.map +0 -1
- package/dist/entities/login.entity.js +0 -51
- package/dist/entities/login.entity.js.map +0 -1
- package/dist/entities/membership.entity.d.ts +0 -15
- package/dist/entities/membership.entity.d.ts.map +0 -1
- package/dist/entities/membership.entity.js +0 -59
- package/dist/entities/membership.entity.js.map +0 -1
- package/dist/entities/organization.entity.d.ts +0 -11
- package/dist/entities/organization.entity.d.ts.map +0 -1
- package/dist/entities/organization.entity.js +0 -49
- package/dist/entities/organization.entity.js.map +0 -1
- package/dist/entities/role.entity.d.ts +0 -16
- package/dist/entities/role.entity.d.ts.map +0 -1
- package/dist/entities/role.entity.js +0 -43
- package/dist/entities/role.entity.js.map +0 -1
- package/dist/entities/user.entity.d.ts +0 -18
- package/dist/entities/user.entity.d.ts.map +0 -1
- package/dist/entities/user.entity.js +0 -70
- package/dist/entities/user.entity.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "synunu-libs",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.12",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"description": "Shared DTOs, constants, and utilities for Synunu microservices",
|
|
@@ -14,21 +14,15 @@
|
|
|
14
14
|
"author": "synunu team",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"
|
|
17
|
+
"@nestjs/graphql": "^13.2.0",
|
|
18
|
+
"typescript": "^5.7.3"
|
|
18
19
|
},
|
|
19
20
|
"dependencies": {
|
|
20
21
|
"class-validator": "^0.14.2",
|
|
21
22
|
"reflect-metadata": "^0.2.2"
|
|
22
23
|
},
|
|
23
24
|
"peerDependencies": {
|
|
24
|
-
"@
|
|
25
|
-
"
|
|
26
|
-
"@nestjs/graphql": "^13.2.0",
|
|
27
|
-
"apollo-server-express": "^3.13.0",
|
|
28
|
-
"@nestjs/common": "^11.0.0",
|
|
29
|
-
"@nestjs/config": "^4.0.0",
|
|
30
|
-
"@nestjs/core": "^11.0.0",
|
|
31
|
-
"@nestjs/microservices": "^11.0.0",
|
|
32
|
-
"graphql": "^16.0.0"
|
|
25
|
+
"@nestjs/graphql": "^13.1.0",
|
|
26
|
+
"typescript": "^5.7.3"
|
|
33
27
|
}
|
|
34
28
|
}
|
|
@@ -1,168 +0,0 @@
|
|
|
1
|
-
export declare const PERMISSIONS: {
|
|
2
|
-
readonly ADMIN: {
|
|
3
|
-
readonly ALL: "admin:*";
|
|
4
|
-
};
|
|
5
|
-
readonly SALES: {
|
|
6
|
-
readonly ORDERS: {
|
|
7
|
-
readonly READ: `${string}:read`;
|
|
8
|
-
readonly CREATE: `${string}:create`;
|
|
9
|
-
readonly UPDATE: `${string}:update`;
|
|
10
|
-
readonly DELETE: `${string}:delete`;
|
|
11
|
-
};
|
|
12
|
-
readonly DRAFT_ORDERS: {
|
|
13
|
-
readonly READ: `${string}:read`;
|
|
14
|
-
readonly CREATE: `${string}:create`;
|
|
15
|
-
readonly UPDATE: `${string}:update`;
|
|
16
|
-
readonly DELETE: `${string}:delete`;
|
|
17
|
-
};
|
|
18
|
-
readonly RETURNS: {
|
|
19
|
-
readonly READ: `${string}:read`;
|
|
20
|
-
readonly CREATE: `${string}:create`;
|
|
21
|
-
readonly UPDATE: `${string}:update`;
|
|
22
|
-
readonly DELETE: `${string}:delete`;
|
|
23
|
-
};
|
|
24
|
-
readonly FULFILLMENT_HANDOVERS: {
|
|
25
|
-
readonly READ: `${string}:read`;
|
|
26
|
-
readonly CREATE: `${string}:create`;
|
|
27
|
-
readonly UPDATE: `${string}:update`;
|
|
28
|
-
readonly DELETE: `${string}:delete`;
|
|
29
|
-
};
|
|
30
|
-
readonly STOCK_TRANSFERS: {
|
|
31
|
-
readonly READ: `${string}:read`;
|
|
32
|
-
readonly CREATE: `${string}:create`;
|
|
33
|
-
readonly UPDATE: `${string}:update`;
|
|
34
|
-
readonly DELETE: `${string}:delete`;
|
|
35
|
-
};
|
|
36
|
-
readonly PURCHASE_ORDERS: "purchase_orders";
|
|
37
|
-
readonly SUPPLIER_RETURNS: "supplier_returns";
|
|
38
|
-
readonly SHIPMENTS: "shipments";
|
|
39
|
-
};
|
|
40
|
-
readonly CATALOG: {
|
|
41
|
-
readonly PRODUCTS: {
|
|
42
|
-
readonly READ: `${string}:read`;
|
|
43
|
-
readonly CREATE: `${string}:create`;
|
|
44
|
-
readonly UPDATE: `${string}:update`;
|
|
45
|
-
readonly DELETE: `${string}:delete`;
|
|
46
|
-
};
|
|
47
|
-
readonly INVENTORIES: {
|
|
48
|
-
readonly READ: `${string}:read`;
|
|
49
|
-
readonly CREATE: `${string}:create`;
|
|
50
|
-
readonly UPDATE: `${string}:update`;
|
|
51
|
-
readonly DELETE: `${string}:delete`;
|
|
52
|
-
};
|
|
53
|
-
readonly MENUS: {
|
|
54
|
-
readonly READ: `${string}:read`;
|
|
55
|
-
readonly CREATE: `${string}:create`;
|
|
56
|
-
readonly UPDATE: `${string}:update`;
|
|
57
|
-
readonly DELETE: `${string}:delete`;
|
|
58
|
-
};
|
|
59
|
-
readonly COLLECTIONS: "collections";
|
|
60
|
-
readonly SUPPLIERS: "suppliers";
|
|
61
|
-
readonly OPTIONS: {
|
|
62
|
-
readonly READ: `${string}:read`;
|
|
63
|
-
readonly CREATE: `${string}:create`;
|
|
64
|
-
readonly UPDATE: `${string}:update`;
|
|
65
|
-
readonly DELETE: `${string}:delete`;
|
|
66
|
-
};
|
|
67
|
-
readonly VARIANTS: {
|
|
68
|
-
readonly READ: `${string}:read`;
|
|
69
|
-
readonly CREATE: `${string}:create`;
|
|
70
|
-
readonly UPDATE: `${string}:update`;
|
|
71
|
-
readonly DELETE: `${string}:delete`;
|
|
72
|
-
};
|
|
73
|
-
readonly PRODUCTIMAGES: {
|
|
74
|
-
readonly READ: `${string}:read`;
|
|
75
|
-
readonly CREATE: `${string}:create`;
|
|
76
|
-
readonly UPDATE: `${string}:update`;
|
|
77
|
-
readonly DELETE: `${string}:delete`;
|
|
78
|
-
};
|
|
79
|
-
};
|
|
80
|
-
readonly CUSTOMERS: {
|
|
81
|
-
readonly CUSTOMERS: {
|
|
82
|
-
readonly READ: `${string}:read`;
|
|
83
|
-
readonly CREATE: `${string}:create`;
|
|
84
|
-
readonly UPDATE: `${string}:update`;
|
|
85
|
-
readonly DELETE: `${string}:delete`;
|
|
86
|
-
};
|
|
87
|
-
readonly VOUCHERS: {
|
|
88
|
-
readonly READ: "vouchers:read";
|
|
89
|
-
readonly WRITE: "vouchers:write";
|
|
90
|
-
};
|
|
91
|
-
readonly REASONS: {
|
|
92
|
-
readonly READ: "reasons:read";
|
|
93
|
-
readonly WRITE: "reasons:write";
|
|
94
|
-
};
|
|
95
|
-
readonly CARRIERS: {
|
|
96
|
-
readonly READ: `${string}:read`;
|
|
97
|
-
readonly CREATE: `${string}:create`;
|
|
98
|
-
readonly UPDATE: `${string}:update`;
|
|
99
|
-
readonly DELETE: `${string}:delete`;
|
|
100
|
-
};
|
|
101
|
-
};
|
|
102
|
-
readonly REPORTING: {
|
|
103
|
-
readonly DASHBOARD: "dashboard";
|
|
104
|
-
readonly REPORTS: {
|
|
105
|
-
readonly SALE: "reports:sale";
|
|
106
|
-
readonly CUSTOMER: "reports:customer";
|
|
107
|
-
readonly INVENTORY: "reports:inventory";
|
|
108
|
-
readonly VISIT: "reports:visit";
|
|
109
|
-
};
|
|
110
|
-
};
|
|
111
|
-
readonly SETTINGS: {
|
|
112
|
-
readonly THEMES: "themes";
|
|
113
|
-
readonly PAGES: "pages";
|
|
114
|
-
readonly LINKS: "links";
|
|
115
|
-
readonly DOMAINS: "domains";
|
|
116
|
-
readonly WEBSITE: "website_settings";
|
|
117
|
-
readonly STORE: "store_settings";
|
|
118
|
-
readonly LOCATION: "location_settings";
|
|
119
|
-
readonly TAX: "tax_settings";
|
|
120
|
-
readonly SHIPPING_METHOD: "shipping_method_settings";
|
|
121
|
-
readonly SHIPPING: "shipping_settings";
|
|
122
|
-
readonly PAYMENT: "payment_settings";
|
|
123
|
-
readonly PLANS: "plans_settings";
|
|
124
|
-
readonly CHECKOUT: "checkout_settings";
|
|
125
|
-
readonly USER_PERMISSIONS: "user_permissions";
|
|
126
|
-
readonly NOTIFICATIONS: "notifications";
|
|
127
|
-
readonly FILES: "files";
|
|
128
|
-
readonly APPLICATIONS: {
|
|
129
|
-
readonly READ: `${string}:read`;
|
|
130
|
-
readonly CREATE: `${string}:create`;
|
|
131
|
-
readonly UPDATE: `${string}:update`;
|
|
132
|
-
readonly DELETE: `${string}:delete`;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
readonly SYSTEM: {
|
|
136
|
-
readonly USERS: {
|
|
137
|
-
readonly READ: `${string}:read`;
|
|
138
|
-
readonly CREATE: `${string}:create`;
|
|
139
|
-
readonly UPDATE: `${string}:update`;
|
|
140
|
-
readonly DELETE: `${string}:delete`;
|
|
141
|
-
};
|
|
142
|
-
readonly ROLES: {
|
|
143
|
-
readonly READ: `${string}:read`;
|
|
144
|
-
readonly CREATE: `${string}:create`;
|
|
145
|
-
readonly UPDATE: `${string}:update`;
|
|
146
|
-
readonly DELETE: `${string}:delete`;
|
|
147
|
-
};
|
|
148
|
-
readonly MEMBERSHIPS: {
|
|
149
|
-
readonly READ: `${string}:read`;
|
|
150
|
-
readonly CREATE: `${string}:create`;
|
|
151
|
-
readonly UPDATE: `${string}:update`;
|
|
152
|
-
readonly DELETE: `${string}:delete`;
|
|
153
|
-
};
|
|
154
|
-
readonly ORGANIZATIONS: {
|
|
155
|
-
readonly READ: `${string}:read`;
|
|
156
|
-
readonly CREATE: `${string}:create`;
|
|
157
|
-
readonly UPDATE: `${string}:update`;
|
|
158
|
-
readonly DELETE: `${string}:delete`;
|
|
159
|
-
};
|
|
160
|
-
readonly BRANCHES: {
|
|
161
|
-
readonly READ: `${string}:read`;
|
|
162
|
-
readonly CREATE: `${string}:create`;
|
|
163
|
-
readonly UPDATE: `${string}:update`;
|
|
164
|
-
readonly DELETE: `${string}:delete`;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
167
|
-
};
|
|
168
|
-
//# sourceMappingURL=permission.constants.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.constants.d.ts","sourceRoot":"","sources":["../../src/constants/permission.constants.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEd,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PERMISSIONS = void 0;
|
|
4
|
-
function crudPermissions(module, extra) {
|
|
5
|
-
const base = {
|
|
6
|
-
READ: `${module}:read`,
|
|
7
|
-
CREATE: `${module}:create`,
|
|
8
|
-
UPDATE: `${module}:update`,
|
|
9
|
-
DELETE: `${module}:delete`,
|
|
10
|
-
};
|
|
11
|
-
return extra ? { ...base, ...extra } : base;
|
|
12
|
-
}
|
|
13
|
-
exports.PERMISSIONS = {
|
|
14
|
-
ADMIN: {
|
|
15
|
-
ALL: "admin:*",
|
|
16
|
-
},
|
|
17
|
-
SALES: {
|
|
18
|
-
ORDERS: crudPermissions("orders"),
|
|
19
|
-
DRAFT_ORDERS: crudPermissions("draft_orders"),
|
|
20
|
-
RETURNS: crudPermissions("returns"),
|
|
21
|
-
FULFILLMENT_HANDOVERS: crudPermissions("fulfillment_handovers"),
|
|
22
|
-
STOCK_TRANSFERS: crudPermissions("stock_transfers"),
|
|
23
|
-
PURCHASE_ORDERS: "purchase_orders",
|
|
24
|
-
SUPPLIER_RETURNS: "supplier_returns",
|
|
25
|
-
SHIPMENTS: "shipments",
|
|
26
|
-
},
|
|
27
|
-
CATALOG: {
|
|
28
|
-
PRODUCTS: crudPermissions("products"),
|
|
29
|
-
INVENTORIES: crudPermissions("inventories"),
|
|
30
|
-
MENUS: crudPermissions("inventories"),
|
|
31
|
-
COLLECTIONS: "collections",
|
|
32
|
-
SUPPLIERS: "suppliers",
|
|
33
|
-
OPTIONS: crudPermissions("options"),
|
|
34
|
-
VARIANTS: crudPermissions("variants"),
|
|
35
|
-
PRODUCTIMAGES: crudPermissions("productimages"),
|
|
36
|
-
},
|
|
37
|
-
CUSTOMERS: {
|
|
38
|
-
CUSTOMERS: crudPermissions("customers"),
|
|
39
|
-
VOUCHERS: { READ: "vouchers:read", WRITE: "vouchers:write" },
|
|
40
|
-
REASONS: { READ: "reasons:read", WRITE: "reasons:write" },
|
|
41
|
-
CARRIERS: crudPermissions("carriers"),
|
|
42
|
-
},
|
|
43
|
-
REPORTING: {
|
|
44
|
-
DASHBOARD: "dashboard",
|
|
45
|
-
REPORTS: {
|
|
46
|
-
SALE: "reports:sale",
|
|
47
|
-
CUSTOMER: "reports:customer",
|
|
48
|
-
INVENTORY: "reports:inventory",
|
|
49
|
-
VISIT: "reports:visit",
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
SETTINGS: {
|
|
53
|
-
THEMES: "themes",
|
|
54
|
-
PAGES: "pages",
|
|
55
|
-
LINKS: "links",
|
|
56
|
-
DOMAINS: "domains",
|
|
57
|
-
WEBSITE: "website_settings",
|
|
58
|
-
STORE: "store_settings",
|
|
59
|
-
LOCATION: "location_settings",
|
|
60
|
-
TAX: "tax_settings",
|
|
61
|
-
SHIPPING_METHOD: "shipping_method_settings",
|
|
62
|
-
SHIPPING: "shipping_settings",
|
|
63
|
-
PAYMENT: "payment_settings",
|
|
64
|
-
PLANS: "plans_settings",
|
|
65
|
-
CHECKOUT: "checkout_settings",
|
|
66
|
-
USER_PERMISSIONS: "user_permissions",
|
|
67
|
-
NOTIFICATIONS: "notifications",
|
|
68
|
-
FILES: "files",
|
|
69
|
-
APPLICATIONS: crudPermissions("applications"),
|
|
70
|
-
},
|
|
71
|
-
SYSTEM: {
|
|
72
|
-
USERS: crudPermissions("users"),
|
|
73
|
-
ROLES: crudPermissions("roles"),
|
|
74
|
-
MEMBERSHIPS: crudPermissions("memberships"),
|
|
75
|
-
ORGANIZATIONS: crudPermissions("organizations"),
|
|
76
|
-
BRANCHES: crudPermissions("branches"),
|
|
77
|
-
},
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=permission.constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"permission.constants.js","sourceRoot":"","sources":["../../src/constants/permission.constants.ts"],"names":[],"mappings":";;;AAEA,SAAS,eAAe,CACtB,MAAc,EACd,KAA2B;IAE3B,MAAM,IAAI,GAAG;QACX,IAAI,EAAE,GAAG,MAAM,OAAO;QACtB,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;QAC1B,MAAM,EAAE,GAAG,MAAM,SAAS;KAClB,CAAC;IAEX,OAAO,KAAK,CAAC,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAEY,QAAA,WAAW,GAAG;IACzB,KAAK,EAAE;QACL,GAAG,EAAE,SAAS;KACf;IAED,KAAK,EAAE;QACL,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC;QACjC,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;QAC7C,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC;QACnC,qBAAqB,EAAE,eAAe,CAAC,uBAAuB,CAAC;QAC/D,eAAe,EAAE,eAAe,CAAC,iBAAiB,CAAC;QACnD,eAAe,EAAE,iBAAiB;QAClC,gBAAgB,EAAE,kBAAkB;QACpC,SAAS,EAAE,WAAW;KACvB;IAED,OAAO,EAAE;QACP,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,KAAK,EAAE,eAAe,CAAC,aAAa,CAAC;QACrC,WAAW,EAAE,aAAa;QAC1B,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE,eAAe,CAAC,SAAS,CAAC;QACnC,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;QACrC,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;KAChD;IAED,SAAS,EAAE;QACT,SAAS,EAAE,eAAe,CAAC,WAAW,CAAC;QACvC,QAAQ,EAAE,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,gBAAgB,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,EAAE;QACzD,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;IAED,SAAS,EAAE;QACT,SAAS,EAAE,WAAW;QACtB,OAAO,EAAE;YACP,IAAI,EAAE,cAAc;YACpB,QAAQ,EAAE,kBAAkB;YAC5B,SAAS,EAAE,mBAAmB;YAC9B,KAAK,EAAE,eAAe;SACvB;KACF;IAED,QAAQ,EAAE;QACR,MAAM,EAAE,QAAQ;QAChB,KAAK,EAAE,OAAO;QACd,KAAK,EAAE,OAAO;QACd,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,GAAG,EAAE,cAAc;QACnB,eAAe,EAAE,0BAA0B;QAC3C,QAAQ,EAAE,mBAAmB;QAC7B,OAAO,EAAE,kBAAkB;QAC3B,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,mBAAmB;QAC7B,gBAAgB,EAAE,kBAAkB;QACpC,aAAa,EAAE,eAAe;QAC9B,KAAK,EAAE,OAAO;QACd,YAAY,EAAE,eAAe,CAAC,cAAc,CAAC;KAC9C;IACD,MAAM,EAAE;QACN,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC;QAC/B,WAAW,EAAE,eAAe,CAAC,aAAa,CAAC;QAC3C,aAAa,EAAE,eAAe,CAAC,eAAe,CAAC;QAC/C,QAAQ,EAAE,eAAe,CAAC,UAAU,CAAC;KACtC;CACO,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branch.entity.d.ts","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":"AAEA,qBACa,YAAY;IAEvB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,IAAI,EAAE,MAAM,CAAC;IAGb,cAAc,EAAE,MAAM,CAAC;IAGvB,WAAW,CAAC,EAAE,MAAM,CAAC;IAMrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.BranchEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
let BranchEntity = class BranchEntity {
|
|
15
|
-
};
|
|
16
|
-
exports.BranchEntity = BranchEntity;
|
|
17
|
-
__decorate([
|
|
18
|
-
(0, graphql_1.Field)(() => String),
|
|
19
|
-
__metadata("design:type", String)
|
|
20
|
-
], BranchEntity.prototype, "_id", void 0);
|
|
21
|
-
__decorate([
|
|
22
|
-
(0, graphql_1.Field)(),
|
|
23
|
-
__metadata("design:type", String)
|
|
24
|
-
], BranchEntity.prototype, "name", void 0);
|
|
25
|
-
__decorate([
|
|
26
|
-
(0, graphql_1.Field)(),
|
|
27
|
-
__metadata("design:type", String)
|
|
28
|
-
], BranchEntity.prototype, "code", void 0);
|
|
29
|
-
__decorate([
|
|
30
|
-
(0, graphql_1.Field)(),
|
|
31
|
-
__metadata("design:type", String)
|
|
32
|
-
], BranchEntity.prototype, "organizationId", void 0);
|
|
33
|
-
__decorate([
|
|
34
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
35
|
-
__metadata("design:type", String)
|
|
36
|
-
], BranchEntity.prototype, "description", void 0);
|
|
37
|
-
__decorate([
|
|
38
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
39
|
-
__metadata("design:type", String)
|
|
40
|
-
], BranchEntity.prototype, "createdBy", void 0);
|
|
41
|
-
exports.BranchEntity = BranchEntity = __decorate([
|
|
42
|
-
(0, graphql_1.ObjectType)()
|
|
43
|
-
], BranchEntity);
|
|
44
|
-
//# sourceMappingURL=branch.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"branch.entity.js","sourceRoot":"","sources":["../../src/entities/branch.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AAGlD,IAAM,YAAY,GAAlB,MAAM,YAAY;CAqBxB,CAAA;AArBY,oCAAY;AAEvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;yCACR;AAGZ;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;0CACK;AAGb;IADC,IAAA,eAAK,GAAE;;oDACe;AAGvB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACL;AAMrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACP;uBApBR,YAAY;IADxB,IAAA,oBAAU,GAAE;GACA,YAAY,CAqBxB"}
|
package/dist/entities/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC"}
|
package/dist/entities/index.js
DELETED
|
@@ -1,23 +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
|
-
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("./user.entity"), exports);
|
|
18
|
-
__exportStar(require("./organization.entity"), exports);
|
|
19
|
-
__exportStar(require("./branch.entity"), exports);
|
|
20
|
-
__exportStar(require("./membership.entity"), exports);
|
|
21
|
-
__exportStar(require("./role.entity"), exports);
|
|
22
|
-
__exportStar(require("./login.entity"), exports);
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/entities/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA8B;AAC9B,wDAAsC;AACtC,kDAAgC;AAChC,sDAAoC;AACpC,gDAA8B;AAC9B,iDAA+B"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { UserEntity } from "./user.entity";
|
|
2
|
-
export declare class LoginEntity {
|
|
3
|
-
accessToken: string;
|
|
4
|
-
refreshToken?: string;
|
|
5
|
-
user: UserEntity;
|
|
6
|
-
isMultiBranch: boolean;
|
|
7
|
-
}
|
|
8
|
-
export declare class RefreshTokenEntity {
|
|
9
|
-
accessToken: string;
|
|
10
|
-
refreshToken?: string;
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=login.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.entity.d.ts","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,WAAW;IAEtB,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,IAAI,EAAE,UAAU,CAAC;IAGjB,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,qBACa,kBAAkB;IAE7B,WAAW,EAAE,MAAM,CAAC;IAGpB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.RefreshTokenEntity = exports.LoginEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
let LoginEntity = class LoginEntity {
|
|
16
|
-
};
|
|
17
|
-
exports.LoginEntity = LoginEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], LoginEntity.prototype, "accessToken", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], LoginEntity.prototype, "refreshToken", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, graphql_1.Field)(() => user_entity_1.UserEntity),
|
|
28
|
-
__metadata("design:type", user_entity_1.UserEntity)
|
|
29
|
-
], LoginEntity.prototype, "user", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, graphql_1.Field)(() => Boolean),
|
|
32
|
-
__metadata("design:type", Boolean)
|
|
33
|
-
], LoginEntity.prototype, "isMultiBranch", void 0);
|
|
34
|
-
exports.LoginEntity = LoginEntity = __decorate([
|
|
35
|
-
(0, graphql_1.ObjectType)()
|
|
36
|
-
], LoginEntity);
|
|
37
|
-
let RefreshTokenEntity = class RefreshTokenEntity {
|
|
38
|
-
};
|
|
39
|
-
exports.RefreshTokenEntity = RefreshTokenEntity;
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, graphql_1.Field)(),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], RefreshTokenEntity.prototype, "accessToken", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
46
|
-
__metadata("design:type", String)
|
|
47
|
-
], RefreshTokenEntity.prototype, "refreshToken", void 0);
|
|
48
|
-
exports.RefreshTokenEntity = RefreshTokenEntity = __decorate([
|
|
49
|
-
(0, graphql_1.ObjectType)()
|
|
50
|
-
], RefreshTokenEntity);
|
|
51
|
-
//# sourceMappingURL=login.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"login.entity.js","sourceRoot":"","sources":["../../src/entities/login.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,+CAA2C;AAGpC,IAAM,WAAW,GAAjB,MAAM,WAAW;CAYvB,CAAA;AAZY,kCAAW;AAEtB;IADC,IAAA,eAAK,GAAE;;gDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;iDACJ;AAGtB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;yCAAC;AAGjB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;kDACE;sBAXZ,WAAW;IADvB,IAAA,oBAAU,GAAE;GACA,WAAW,CAYvB;AAGM,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAM9B,CAAA;AANY,gDAAkB;AAE7B;IADC,IAAA,eAAK,GAAE;;uDACY;AAGpB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDACJ;6BALX,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAM9B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { BranchEntity } from "./branch.entity";
|
|
2
|
-
import { OrganizationEntity } from "./organization.entity";
|
|
3
|
-
import { RoleEntity } from "./role.entity";
|
|
4
|
-
export declare class MembershipEntity {
|
|
5
|
-
_id: string;
|
|
6
|
-
name: string;
|
|
7
|
-
userId: string;
|
|
8
|
-
roleId: string;
|
|
9
|
-
organizationId?: string;
|
|
10
|
-
branchId?: string;
|
|
11
|
-
organization: OrganizationEntity;
|
|
12
|
-
branch: BranchEntity;
|
|
13
|
-
role: RoleEntity;
|
|
14
|
-
}
|
|
15
|
-
//# sourceMappingURL=membership.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"membership.entity.d.ts","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,gBAAgB;IAE3B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,MAAM,EAAE,MAAM,CAAC;IAGf,MAAM,EAAE,MAAM,CAAC;IAGf,cAAc,CAAC,EAAE,MAAM,CAAC;IAGxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IASlB,YAAY,EAAE,kBAAkB,CAAC;IAGjC,MAAM,EAAE,YAAY,CAAC;IAGrB,IAAI,EAAE,UAAU,CAAC;CAClB"}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.MembershipEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const branch_entity_1 = require("./branch.entity");
|
|
15
|
-
const organization_entity_1 = require("./organization.entity");
|
|
16
|
-
const role_entity_1 = require("./role.entity");
|
|
17
|
-
let MembershipEntity = class MembershipEntity {
|
|
18
|
-
};
|
|
19
|
-
exports.MembershipEntity = MembershipEntity;
|
|
20
|
-
__decorate([
|
|
21
|
-
(0, graphql_1.Field)(() => String),
|
|
22
|
-
__metadata("design:type", String)
|
|
23
|
-
], MembershipEntity.prototype, "_id", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, graphql_1.Field)(() => String),
|
|
26
|
-
__metadata("design:type", String)
|
|
27
|
-
], MembershipEntity.prototype, "name", void 0);
|
|
28
|
-
__decorate([
|
|
29
|
-
(0, graphql_1.Field)(() => String),
|
|
30
|
-
__metadata("design:type", String)
|
|
31
|
-
], MembershipEntity.prototype, "userId", void 0);
|
|
32
|
-
__decorate([
|
|
33
|
-
(0, graphql_1.Field)(() => String),
|
|
34
|
-
__metadata("design:type", String)
|
|
35
|
-
], MembershipEntity.prototype, "roleId", void 0);
|
|
36
|
-
__decorate([
|
|
37
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
38
|
-
__metadata("design:type", String)
|
|
39
|
-
], MembershipEntity.prototype, "organizationId", void 0);
|
|
40
|
-
__decorate([
|
|
41
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
42
|
-
__metadata("design:type", String)
|
|
43
|
-
], MembershipEntity.prototype, "branchId", void 0);
|
|
44
|
-
__decorate([
|
|
45
|
-
(0, graphql_1.Field)(() => organization_entity_1.OrganizationEntity),
|
|
46
|
-
__metadata("design:type", organization_entity_1.OrganizationEntity)
|
|
47
|
-
], MembershipEntity.prototype, "organization", void 0);
|
|
48
|
-
__decorate([
|
|
49
|
-
(0, graphql_1.Field)(() => branch_entity_1.BranchEntity),
|
|
50
|
-
__metadata("design:type", branch_entity_1.BranchEntity)
|
|
51
|
-
], MembershipEntity.prototype, "branch", void 0);
|
|
52
|
-
__decorate([
|
|
53
|
-
(0, graphql_1.Field)(() => role_entity_1.RoleEntity),
|
|
54
|
-
__metadata("design:type", role_entity_1.RoleEntity)
|
|
55
|
-
], MembershipEntity.prototype, "role", void 0);
|
|
56
|
-
exports.MembershipEntity = MembershipEntity = __decorate([
|
|
57
|
-
(0, graphql_1.ObjectType)()
|
|
58
|
-
], MembershipEntity);
|
|
59
|
-
//# sourceMappingURL=membership.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"membership.entity.js","sourceRoot":"","sources":["../../src/entities/membership.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,mDAA+C;AAC/C,+DAA2D;AAC3D,+CAA2C;AAGpC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;CAiC5B,CAAA;AAjCY,4CAAgB;AAE3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;6CACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;8CACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;gDACL;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;wDAChB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACtB;AASlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wCAAkB,CAAC;8BAClB,wCAAkB;sDAAC;AAGjC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,4BAAY,CAAC;8BAClB,4BAAY;gDAAC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,CAAC;8BAClB,wBAAU;8CAAC;2BAhCN,gBAAgB;IAD5B,IAAA,oBAAU,GAAE;GACA,gBAAgB,CAiC5B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { UserEntity } from "./user.entity";
|
|
2
|
-
export declare class OrganizationEntity {
|
|
3
|
-
_id: string;
|
|
4
|
-
name: number;
|
|
5
|
-
language: string[];
|
|
6
|
-
description?: string;
|
|
7
|
-
createdBy: string;
|
|
8
|
-
updatedAt: string;
|
|
9
|
-
creator?: UserEntity;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=organization.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.d.ts","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAE3C,qBACa,kBAAkB;IAE7B,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,QAAQ,EAAE,MAAM,EAAE,CAAC;IAGnB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,SAAS,EAAE,MAAM,CAAC;IAMlB,SAAS,EAAE,MAAM,CAAC;IAGlB,OAAO,CAAC,EAAE,UAAU,CAAC;CACtB"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.OrganizationEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const user_entity_1 = require("./user.entity");
|
|
15
|
-
let OrganizationEntity = class OrganizationEntity {
|
|
16
|
-
};
|
|
17
|
-
exports.OrganizationEntity = OrganizationEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(() => String),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], OrganizationEntity.prototype, "_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
24
|
-
__metadata("design:type", Number)
|
|
25
|
-
], OrganizationEntity.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, graphql_1.Field)(() => [String]),
|
|
28
|
-
__metadata("design:type", Array)
|
|
29
|
-
], OrganizationEntity.prototype, "language", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
32
|
-
__metadata("design:type", String)
|
|
33
|
-
], OrganizationEntity.prototype, "description", void 0);
|
|
34
|
-
__decorate([
|
|
35
|
-
(0, graphql_1.Field)(() => String),
|
|
36
|
-
__metadata("design:type", String)
|
|
37
|
-
], OrganizationEntity.prototype, "createdBy", void 0);
|
|
38
|
-
__decorate([
|
|
39
|
-
(0, graphql_1.Field)(() => String),
|
|
40
|
-
__metadata("design:type", String)
|
|
41
|
-
], OrganizationEntity.prototype, "updatedAt", void 0);
|
|
42
|
-
__decorate([
|
|
43
|
-
(0, graphql_1.Field)(() => user_entity_1.UserEntity, { nullable: true }),
|
|
44
|
-
__metadata("design:type", user_entity_1.UserEntity)
|
|
45
|
-
], OrganizationEntity.prototype, "creator", void 0);
|
|
46
|
-
exports.OrganizationEntity = OrganizationEntity = __decorate([
|
|
47
|
-
(0, graphql_1.ObjectType)()
|
|
48
|
-
], OrganizationEntity);
|
|
49
|
-
//# sourceMappingURL=organization.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"organization.entity.js","sourceRoot":"","sources":["../../src/entities/organization.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,+CAA2C;AAGpC,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAwB9B,CAAA;AAxBY,gDAAkB;AAE7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;+CACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;gDACJ;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC;;oDACH;AAGnB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACnB;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAMlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;qDACF;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,wBAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BAClC,wBAAU;mDAAC;6BAvBV,kBAAkB;IAD9B,IAAA,oBAAU,GAAE;GACA,kBAAkB,CAwB9B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export declare class RoleEntity {
|
|
2
|
-
_id: string;
|
|
3
|
-
name: string;
|
|
4
|
-
description?: string;
|
|
5
|
-
permissions?: string[];
|
|
6
|
-
}
|
|
7
|
-
declare const PaginatedRoleResult_base: abstract new () => {
|
|
8
|
-
items: RoleEntity[];
|
|
9
|
-
total: number;
|
|
10
|
-
page: number;
|
|
11
|
-
size: number;
|
|
12
|
-
};
|
|
13
|
-
export declare class PaginatedRoleResult extends PaginatedRoleResult_base {
|
|
14
|
-
}
|
|
15
|
-
export {};
|
|
16
|
-
//# sourceMappingURL=role.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.d.ts","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":"AAGA,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,IAAI,EAAE,MAAM,CAAC;IAGb,WAAW,CAAC,EAAE,MAAM,CAAC;IASrB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;CACxB;;;;;;;AAED,qBACa,mBAAoB,SAAQ,wBAA2B;CAAG"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.PaginatedRoleResult = exports.RoleEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const paginated_result_type_1 = require("../types/paginated-result.type");
|
|
15
|
-
let RoleEntity = class RoleEntity {
|
|
16
|
-
};
|
|
17
|
-
exports.RoleEntity = RoleEntity;
|
|
18
|
-
__decorate([
|
|
19
|
-
(0, graphql_1.Field)(() => String),
|
|
20
|
-
__metadata("design:type", String)
|
|
21
|
-
], RoleEntity.prototype, "_id", void 0);
|
|
22
|
-
__decorate([
|
|
23
|
-
(0, graphql_1.Field)(() => String),
|
|
24
|
-
__metadata("design:type", String)
|
|
25
|
-
], RoleEntity.prototype, "name", void 0);
|
|
26
|
-
__decorate([
|
|
27
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
28
|
-
__metadata("design:type", String)
|
|
29
|
-
], RoleEntity.prototype, "description", void 0);
|
|
30
|
-
__decorate([
|
|
31
|
-
(0, graphql_1.Field)(() => [String], { nullable: true }),
|
|
32
|
-
__metadata("design:type", Array)
|
|
33
|
-
], RoleEntity.prototype, "permissions", void 0);
|
|
34
|
-
exports.RoleEntity = RoleEntity = __decorate([
|
|
35
|
-
(0, graphql_1.ObjectType)()
|
|
36
|
-
], RoleEntity);
|
|
37
|
-
let PaginatedRoleResult = class PaginatedRoleResult extends (0, paginated_result_type_1.PaginatedResult)(RoleEntity) {
|
|
38
|
-
};
|
|
39
|
-
exports.PaginatedRoleResult = PaginatedRoleResult;
|
|
40
|
-
exports.PaginatedRoleResult = PaginatedRoleResult = __decorate([
|
|
41
|
-
(0, graphql_1.ObjectType)()
|
|
42
|
-
], PaginatedRoleResult);
|
|
43
|
-
//# sourceMappingURL=role.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"role.entity.js","sourceRoot":"","sources":["../../src/entities/role.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,0EAAiE;AAG1D,IAAM,UAAU,GAAhB,MAAM,UAAU;CAkBtB,CAAA;AAlBY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGZ;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;wCACP;AAGb;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AASrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAjBZ,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAkBtB;AAGM,IAAM,mBAAmB,GAAzB,MAAM,mBAAoB,SAAQ,IAAA,uCAAe,EAAC,UAAU,CAAC;CAAG,CAAA;AAA1D,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,oBAAU,GAAE;GACA,mBAAmB,CAAuC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { MembershipEntity } from "./membership.entity";
|
|
2
|
-
import { EAccountStatus } from "./../enum";
|
|
3
|
-
import { ISocialAccounts } from "../interfaces";
|
|
4
|
-
export declare class UserEntity {
|
|
5
|
-
_id: string;
|
|
6
|
-
userName?: string;
|
|
7
|
-
password?: string;
|
|
8
|
-
email?: string;
|
|
9
|
-
phone?: string;
|
|
10
|
-
fullName?: string;
|
|
11
|
-
isEmailVerified?: boolean;
|
|
12
|
-
status?: EAccountStatus;
|
|
13
|
-
lastLoginAt?: number;
|
|
14
|
-
lastLoginIp?: string;
|
|
15
|
-
socialAccounts?: ISocialAccounts | null;
|
|
16
|
-
memberships?: MembershipEntity[];
|
|
17
|
-
}
|
|
18
|
-
//# sourceMappingURL=user.entity.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.d.ts","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,qBACa,UAAU;IAErB,GAAG,EAAE,MAAM,CAAC;IAGZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,KAAK,CAAC,EAAE,MAAM,CAAC;IAGf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGlB,eAAe,CAAC,EAAE,OAAO,CAAC;IAG1B,MAAM,CAAC,EAAE,cAAc,CAAC;IAGxB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,cAAc,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;IAGxC,WAAW,CAAC,EAAE,gBAAgB,EAAE,CAAC;CAClC"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.UserEntity = void 0;
|
|
13
|
-
const graphql_1 = require("@nestjs/graphql");
|
|
14
|
-
const membership_entity_1 = require("./membership.entity");
|
|
15
|
-
const enum_1 = require("./../enum");
|
|
16
|
-
let UserEntity = class UserEntity {
|
|
17
|
-
};
|
|
18
|
-
exports.UserEntity = UserEntity;
|
|
19
|
-
__decorate([
|
|
20
|
-
(0, graphql_1.Field)(() => String),
|
|
21
|
-
__metadata("design:type", String)
|
|
22
|
-
], UserEntity.prototype, "_id", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
25
|
-
__metadata("design:type", String)
|
|
26
|
-
], UserEntity.prototype, "userName", void 0);
|
|
27
|
-
__decorate([
|
|
28
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
29
|
-
__metadata("design:type", String)
|
|
30
|
-
], UserEntity.prototype, "password", void 0);
|
|
31
|
-
__decorate([
|
|
32
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
33
|
-
__metadata("design:type", String)
|
|
34
|
-
], UserEntity.prototype, "email", void 0);
|
|
35
|
-
__decorate([
|
|
36
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
37
|
-
__metadata("design:type", String)
|
|
38
|
-
], UserEntity.prototype, "phone", void 0);
|
|
39
|
-
__decorate([
|
|
40
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
41
|
-
__metadata("design:type", String)
|
|
42
|
-
], UserEntity.prototype, "fullName", void 0);
|
|
43
|
-
__decorate([
|
|
44
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
45
|
-
__metadata("design:type", Boolean)
|
|
46
|
-
], UserEntity.prototype, "isEmailVerified", void 0);
|
|
47
|
-
__decorate([
|
|
48
|
-
(0, graphql_1.Field)(() => enum_1.EAccountStatus, { nullable: true }),
|
|
49
|
-
__metadata("design:type", String)
|
|
50
|
-
], UserEntity.prototype, "status", void 0);
|
|
51
|
-
__decorate([
|
|
52
|
-
(0, graphql_1.Field)(() => String, { nullable: true }),
|
|
53
|
-
__metadata("design:type", Number)
|
|
54
|
-
], UserEntity.prototype, "lastLoginAt", void 0);
|
|
55
|
-
__decorate([
|
|
56
|
-
(0, graphql_1.Field)({ nullable: true }),
|
|
57
|
-
__metadata("design:type", String)
|
|
58
|
-
], UserEntity.prototype, "lastLoginIp", void 0);
|
|
59
|
-
__decorate([
|
|
60
|
-
(0, graphql_1.Field)(() => [String], { nullable: true }),
|
|
61
|
-
__metadata("design:type", Object)
|
|
62
|
-
], UserEntity.prototype, "socialAccounts", void 0);
|
|
63
|
-
__decorate([
|
|
64
|
-
(0, graphql_1.Field)(() => [membership_entity_1.MembershipEntity], { nullable: true }),
|
|
65
|
-
__metadata("design:type", Array)
|
|
66
|
-
], UserEntity.prototype, "memberships", void 0);
|
|
67
|
-
exports.UserEntity = UserEntity = __decorate([
|
|
68
|
-
(0, graphql_1.ObjectType)()
|
|
69
|
-
], UserEntity);
|
|
70
|
-
//# sourceMappingURL=user.entity.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user.entity.js","sourceRoot":"","sources":["../../src/entities/user.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAoD;AACpD,2DAAuD;AACvD,oCAA2C;AAIpC,IAAM,UAAU,GAAhB,MAAM,UAAU;CAoCtB,CAAA;AApCY,gCAAU;AAErB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;uCACR;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;yCACX;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CACR;AAGlB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;mDACA;AAG1B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,qBAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACxB;AAGxB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;AAGrB;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACL;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kDACF;AAGxC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,oCAAgB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACnB;qBAnCtB,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CAoCtB"}
|