@wenex/sdk 1.1.37 → 1.1.39
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/common/core/interfaces/meta.interface.d.ts +1 -1
- package/common/enums/career/common/index.d.ts +1 -0
- package/common/enums/career/common/index.js +18 -0
- package/common/enums/career/common/index.js.map +1 -0
- package/common/enums/career/{services → common}/range.enum.d.ts +1 -1
- package/common/enums/career/common/range.enum.js +18 -0
- package/common/enums/career/common/range.enum.js.map +1 -0
- package/common/enums/career/index.d.ts +1 -0
- package/common/enums/career/index.js +1 -0
- package/common/enums/career/index.js.map +1 -1
- package/common/enums/career/services/index.d.ts +0 -1
- package/common/enums/career/services/index.js +0 -1
- package/common/enums/career/services/index.js.map +1 -1
- package/common/interfaces/career/employees/employee.interface.d.ts +3 -2
- package/common/interfaces/career/services/service.interface.d.ts +2 -2
- package/package.json +1 -1
- package/services/special/files.service.js +2 -1
- package/services/special/files.service.js.map +1 -1
- package/common/enums/career/services/range.enum.js +0 -18
- package/common/enums/career/services/range.enum.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type MetaKey = 'user-agent' | 'authorization' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-saga-ttl' | 'x-api-token' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-payment-amount' | 'x-no-api-response' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime' | 'x-can-with-id-policies' | 'x-exclude-soft-delete-query';
|
|
1
|
+
export type MetaKey = 'user-agent' | 'authorization' | 'x-at' | 'x-by' | 'x-in' | 'x-zone' | 'x-token' | 'x-user-ip' | 'x-api-key' | 'x-saga-ttl' | 'x-api-token' | 'x-file-data' | 'x-request-id' | 'x-user-agent' | 'x-nested-keys' | 'x-saga-session' | 'x-authorization' | 'x-payment-amount' | 'x-no-api-response' | 'x-can-with-policies' | 'x-naming-convention' | 'x-stat-learning-rate' | 'x-stat-delay-datetime' | 'x-can-with-id-policies' | 'x-exclude-soft-delete-query';
|
|
2
2
|
export type Metadata = {
|
|
3
3
|
[key in MetaKey]?: any;
|
|
4
4
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './range.enum';
|
|
@@ -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("./range.enum"), exports);
|
|
18
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/career/common/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA6B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.LocationRange = void 0;
|
|
4
|
+
var LocationRange;
|
|
5
|
+
(function (LocationRange) {
|
|
6
|
+
LocationRange["CITY"] = "CITY";
|
|
7
|
+
LocationRange["COUNTY"] = "COUNTY";
|
|
8
|
+
LocationRange["DISTRICT"] = "DISTRICT";
|
|
9
|
+
LocationRange["COUNTRY"] = "COUNTRY";
|
|
10
|
+
LocationRange["PROVINCE"] = "PROVINCE";
|
|
11
|
+
LocationRange["STATE"] = "STATE";
|
|
12
|
+
LocationRange["ROAD"] = "ROAD";
|
|
13
|
+
LocationRange["SUBURB"] = "SUBURB";
|
|
14
|
+
LocationRange["QUARTER"] = "QUARTER";
|
|
15
|
+
LocationRange["VILLAGE"] = "VILLAGE";
|
|
16
|
+
LocationRange["MUNICIPALITY"] = "MUNICIPALITY";
|
|
17
|
+
})(LocationRange || (exports.LocationRange = LocationRange = {}));
|
|
18
|
+
//# sourceMappingURL=range.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"range.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/career/common/range.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,aAYX;AAZD,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,sCAAqB,CAAA;IACrB,oCAAmB,CAAA;IACnB,sCAAqB,CAAA;IACrB,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,8CAA6B,CAAA;AAC/B,CAAC,EAZW,aAAa,6BAAb,aAAa,QAYxB"}
|
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./common"), exports);
|
|
17
18
|
__exportStar(require("./branches"), exports);
|
|
18
19
|
__exportStar(require("./businesses"), exports);
|
|
19
20
|
__exportStar(require("./employees"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/career/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/enums/career/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAyB;AACzB,6CAA2B;AAC3B,+CAA6B;AAC7B,8CAA4B;AAC5B,6CAA2B"}
|
|
@@ -14,6 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./range.enum"), exports);
|
|
18
17
|
__exportStar(require("./type.enum"), exports);
|
|
19
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/career/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/common/enums/career/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Document } from 'mongoose';
|
|
2
2
|
import { State, Status } from '../../../core/enums';
|
|
3
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
4
|
-
import { EmployeeType } from '../../../enums/career';
|
|
4
|
+
import { EmployeeType, LocationRange } from '../../../enums/career';
|
|
5
5
|
export interface Employee<Properties extends object = object> extends Core<Properties> {
|
|
6
|
-
profile: string;
|
|
7
6
|
type: EmployeeType;
|
|
7
|
+
range?: LocationRange;
|
|
8
8
|
job_title: string;
|
|
9
|
+
profile?: string;
|
|
9
10
|
branch?: string;
|
|
10
11
|
manager?: string;
|
|
11
12
|
business: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Document } from 'mongoose';
|
|
2
2
|
import { State, Status } from '../../../core/enums';
|
|
3
3
|
import { Core, Dto } from '../../../core/interfaces';
|
|
4
|
-
import {
|
|
4
|
+
import { LocationRange, ServiceType } from '../../../enums/career';
|
|
5
5
|
export interface Service<Properties extends object = object> extends Core<Properties> {
|
|
6
6
|
type: ServiceType;
|
|
7
|
-
range?:
|
|
7
|
+
range?: LocationRange;
|
|
8
8
|
name: string;
|
|
9
9
|
state: State;
|
|
10
10
|
status: Status;
|
package/package.json
CHANGED
|
@@ -14,8 +14,9 @@ class FilesService extends classes_1.RestfulService {
|
|
|
14
14
|
}
|
|
15
15
|
async upload(items, scope, config = {}) {
|
|
16
16
|
const form = new FormData();
|
|
17
|
+
config.headers = config.headers ?? {};
|
|
17
18
|
items.forEach((item) => form.append('file', item.value, item.filename));
|
|
18
|
-
Object.assign(config, {
|
|
19
|
+
Object.assign(config.headers, { 'Content-Type': 'multipart/form-data' });
|
|
19
20
|
const url = this.url(`upload/${scope}`);
|
|
20
21
|
return (await this.post(url, form, config)).items;
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"files.service.js","sourceRoot":"","sources":["../../src/services/special/files.service.ts"],"names":[],"mappings":";;;AAIA,uDAA0E;AAE1E,MAAa,YAAiD,SAAQ,wBAAqD;IACzH,YAAsB,KAAoB;QACxC,KAAK,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;QADV,UAAK,GAAL,KAAK,CAAe;IAE1C,CAAC;IAED,QAAQ,CAAU,EAAU,EAAE,SAA0C,EAAE,EAAE,eAA6B,MAAM;QAC7G,MAAM,CAAC,YAAY,GAAG,YAAY,CAAC;QACnC,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,YAAY,EAAE,EA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AC,QAAQ,CAAC,CAAC,CAAC;QACxE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,cAAc,EAAE,qBAAqB,EAAE,CAAC,CAAC;QACzE,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAAC,UAAU,KAAK,EAAE,CAAC,CAAC;QAChD,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAgD,GAAG,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;IACnG,CAAC;IAED,MAAM,CAAC,KAAK,CAAqC,KAAoB;QACnE,OAAO,IAAI,YAAY,CAAa,KAAK,CAAC,CAAC;IAC7C,CAAC;CACF;AA3BD,oCA2BC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ServiceRange = void 0;
|
|
4
|
-
var ServiceRange;
|
|
5
|
-
(function (ServiceRange) {
|
|
6
|
-
ServiceRange["CITY"] = "CITY";
|
|
7
|
-
ServiceRange["COUNTY"] = "COUNTY";
|
|
8
|
-
ServiceRange["DISTRICT"] = "DISTRICT";
|
|
9
|
-
ServiceRange["COUNTRY"] = "COUNTRY";
|
|
10
|
-
ServiceRange["PROVINCE"] = "PROVINCE";
|
|
11
|
-
ServiceRange["STATE"] = "STATE";
|
|
12
|
-
ServiceRange["ROAD"] = "ROAD";
|
|
13
|
-
ServiceRange["SUBURB"] = "SUBURB";
|
|
14
|
-
ServiceRange["QUARTER"] = "QUARTER";
|
|
15
|
-
ServiceRange["VILLAGE"] = "VILLAGE";
|
|
16
|
-
ServiceRange["MUNICIPALITY"] = "MUNICIPALITY";
|
|
17
|
-
})(ServiceRange || (exports.ServiceRange = ServiceRange = {}));
|
|
18
|
-
//# sourceMappingURL=range.enum.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"range.enum.js","sourceRoot":"","sources":["../../../../src/common/enums/career/services/range.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,YAYX;AAZD,WAAY,YAAY;IACtB,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,mCAAmB,CAAA;IACnB,qCAAqB,CAAA;IACrB,+BAAe,CAAA;IACf,6BAAa,CAAA;IACb,iCAAiB,CAAA;IACjB,mCAAmB,CAAA;IACnB,mCAAmB,CAAA;IACnB,6CAA6B,CAAA;AAC/B,CAAC,EAZW,YAAY,4BAAZ,YAAY,QAYvB"}
|