@anthor/entities-types 1.132.7 → 1.132.13
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/dist/entities/Establishment.d.ts +4 -0
- package/dist/entities/WorkerBalanceTransfer.d.ts +2 -1
- package/dist/entities/WorkerOrder.d.ts +3 -0
- package/dist/enums/TransactionTypes.d.ts +5 -1
- package/dist/enums/TransactionTypes.js +4 -0
- package/dist/enums/TransactionTypes.js.map +1 -1
- package/dist/enums/WorkerOrderStatus.d.ts +3 -1
- package/dist/enums/WorkerOrderStatus.js +2 -0
- package/dist/enums/WorkerOrderStatus.js.map +1 -1
- package/package.json +2 -2
|
@@ -3,6 +3,7 @@ import { Points } from './nested/Points';
|
|
|
3
3
|
import { BaseModel } from './BaseModel';
|
|
4
4
|
import { Company } from './Company';
|
|
5
5
|
import { Address } from './Address';
|
|
6
|
+
import { Worker } from './Worker';
|
|
6
7
|
export interface Establishment extends BaseModel {
|
|
7
8
|
accountManagerId: string;
|
|
8
9
|
activityStartCode: string;
|
|
@@ -25,6 +26,8 @@ export interface Establishment extends BaseModel {
|
|
|
25
26
|
externalId: string;
|
|
26
27
|
formattedClosingHour: string | Date;
|
|
27
28
|
formattedOpeningHour: string | Date;
|
|
29
|
+
hasTokenGenerationAccess: boolean;
|
|
30
|
+
acceptsHourBreak: boolean;
|
|
28
31
|
ifoodId: number;
|
|
29
32
|
managerEmail: string;
|
|
30
33
|
managerName: string;
|
|
@@ -39,4 +42,5 @@ export interface Establishment extends BaseModel {
|
|
|
39
42
|
status: EstablishmentStatus;
|
|
40
43
|
statusChangedBy: string;
|
|
41
44
|
favoriteWorkers: Worker[];
|
|
45
|
+
favoritesLimit?: number;
|
|
42
46
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { BaseModel } from './BaseModel';
|
|
2
2
|
import { JunoTransferStatus, JunoTransferTypes, WorkerBalanceTransferStatus } from '../enums';
|
|
3
|
-
|
|
3
|
+
import { Document } from 'mongoose';
|
|
4
|
+
export interface WorkerBalanceTransfer extends BaseModel, Partial<Document> {
|
|
4
5
|
workerId: string;
|
|
5
6
|
amount: number;
|
|
6
7
|
status: WorkerBalanceTransferStatus;
|
|
@@ -42,5 +42,9 @@ export declare enum TransactionTypes {
|
|
|
42
42
|
PAST_DUE_BILLING_NEGOTIATION_ACTIVITIES = "past_due_billing_negotiation_activities",
|
|
43
43
|
PAST_DUE_BILLING_NEGOTIATION_FEE = "past_due_billing_negotiation_fee",
|
|
44
44
|
COMPANY_CREDIT_PAYMENT_FEE = "company_credit_anthor_fee",
|
|
45
|
-
COMPANY_CREDIT_PAYMENT_ACTIVITIES = "company_credit_activities_fee"
|
|
45
|
+
COMPANY_CREDIT_PAYMENT_ACTIVITIES = "company_credit_activities_fee",
|
|
46
|
+
/**
|
|
47
|
+
* Worker advance request execution
|
|
48
|
+
*/
|
|
49
|
+
WORKER_ADVANCE = "worker_advance"
|
|
46
50
|
}
|
|
@@ -47,5 +47,9 @@ var TransactionTypes;
|
|
|
47
47
|
TransactionTypes["PAST_DUE_BILLING_NEGOTIATION_FEE"] = "past_due_billing_negotiation_fee";
|
|
48
48
|
TransactionTypes["COMPANY_CREDIT_PAYMENT_FEE"] = "company_credit_anthor_fee";
|
|
49
49
|
TransactionTypes["COMPANY_CREDIT_PAYMENT_ACTIVITIES"] = "company_credit_activities_fee";
|
|
50
|
+
/**
|
|
51
|
+
* Worker advance request execution
|
|
52
|
+
*/
|
|
53
|
+
TransactionTypes["WORKER_ADVANCE"] = "worker_advance";
|
|
50
54
|
})(TransactionTypes = exports.TransactionTypes || (exports.TransactionTypes = {}));
|
|
51
55
|
//# sourceMappingURL=TransactionTypes.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionTypes.js","sourceRoot":"","sources":["../../src/enums/TransactionTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"TransactionTypes.js","sourceRoot":"","sources":["../../src/enums/TransactionTypes.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAoDX;AApDD,WAAY,gBAAgB;IAC1B;;OAEG;IACH,qFAAiE,CAAA;IACjE;;OAEG;IACH,qEAAiD,CAAA;IACjD;;OAEG;IACH,iEAA6C,CAAA;IAC7C;;OAEG;IACH,6EAAyD,CAAA;IACzD;;OAEG;IACH,8DAA0C,CAAA;IAC1C;;OAEG;IACH,yEAAqD,CAAA;IACrD;;OAEG;IACH,iFAA6D,CAAA;IAC7D;;OAEG;IACH,+FAA2E,CAAA;IAE3E,oFAAgE,CAAA;IAChE,+FAA2E,CAAA;IAE3E,mFAA+D,CAAA;IAC/D,wEAAoD,CAAA;IACpD,2DAAuC,CAAA;IACvC,6CAAyB,CAAA;IACzB,iFAA6D,CAAA;IAC7D,mEAA+C,CAAA;IAC/C,uGAAmF,CAAA;IACnF,yFAAqE,CAAA;IAErE,4EAAwD,CAAA;IACxD,uFAAmE,CAAA;IACnE;;OAEG;IACH,qDAAiC,CAAA;AACnC,CAAC,EApDW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAoD3B"}
|
|
@@ -21,5 +21,7 @@ export declare enum WorkerOrderStatus {
|
|
|
21
21
|
* The order has already been paid but was reverted for some reason,
|
|
22
22
|
* This should generate a negative credit on the worker's AccountBalanceHistory
|
|
23
23
|
*/
|
|
24
|
-
REVERTED = "reverted"
|
|
24
|
+
REVERTED = "reverted",
|
|
25
|
+
ANTICIPATION_PENDING = "anticipation_pending",
|
|
26
|
+
ANTICIPATION_FAILED = "anticipation_failed"
|
|
25
27
|
}
|
|
@@ -26,5 +26,7 @@ var WorkerOrderStatus;
|
|
|
26
26
|
* This should generate a negative credit on the worker's AccountBalanceHistory
|
|
27
27
|
*/
|
|
28
28
|
WorkerOrderStatus["REVERTED"] = "reverted";
|
|
29
|
+
WorkerOrderStatus["ANTICIPATION_PENDING"] = "anticipation_pending";
|
|
30
|
+
WorkerOrderStatus["ANTICIPATION_FAILED"] = "anticipation_failed";
|
|
29
31
|
})(WorkerOrderStatus = exports.WorkerOrderStatus || (exports.WorkerOrderStatus = {}));
|
|
30
32
|
//# sourceMappingURL=WorkerOrderStatus.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorkerOrderStatus.js","sourceRoot":"","sources":["../../src/enums/WorkerOrderStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"WorkerOrderStatus.js","sourceRoot":"","sources":["../../src/enums/WorkerOrderStatus.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBA0BX;AA1BD,WAAY,iBAAiB;IAC3B;;OAEG;IACH,0CAAqB,CAAA;IACrB;;;OAGG;IACH,4CAAuB,CAAA;IACvB;;;OAGG;IACH,4CAAuB,CAAA;IACvB;;OAEG;IACH,wCAAmB,CAAA;IACnB;;;OAGG;IACH,0CAAqB,CAAA;IACrB,kEAA6C,CAAA;IAC7C,gEAA2C,CAAA;AAC7C,CAAC,EA1BW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA0B5B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anthor/entities-types",
|
|
3
|
-
"version": "1.132.
|
|
3
|
+
"version": "1.132.13",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
"geojson": "^0.5.0",
|
|
26
26
|
"jest-sonar-reporter": "^2.0.0"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "f51e979781f5a6cafc1ab1907728ad00a952a262"
|
|
29
29
|
}
|