spotcharge-types 1.0.380 → 1.0.382
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/enum/consumer/index.d.ts +6 -0
- package/dist/enum/consumer/index.d.ts.map +1 -1
- package/dist/enum/consumer/index.js +13 -1
- package/dist/enum/consumer/index.js.map +1 -1
- package/dist/enum/consumer/push-token-platform.enum.d.ts +7 -0
- package/dist/enum/consumer/push-token-platform.enum.d.ts.map +1 -0
- package/dist/enum/consumer/push-token-platform.enum.js +11 -0
- package/dist/enum/consumer/push-token-platform.enum.js.map +1 -0
- package/dist/enum/consumer/push-token-provider.enum.d.ts +5 -0
- package/dist/enum/consumer/push-token-provider.enum.d.ts.map +1 -0
- package/dist/enum/consumer/push-token-provider.enum.js +9 -0
- package/dist/enum/consumer/push-token-provider.enum.js.map +1 -0
- package/dist/enum/consumer/wallet-hold-source-type.enum.d.ts +6 -0
- package/dist/enum/consumer/wallet-hold-source-type.enum.d.ts.map +1 -0
- package/dist/enum/consumer/wallet-hold-source-type.enum.js +10 -0
- package/dist/enum/consumer/wallet-hold-source-type.enum.js.map +1 -0
- package/dist/enum/consumer/wallet-hold-status.enum.d.ts +13 -0
- package/dist/enum/consumer/wallet-hold-status.enum.d.ts.map +1 -0
- package/dist/enum/consumer/wallet-hold-status.enum.js +17 -0
- package/dist/enum/consumer/wallet-hold-status.enum.js.map +1 -0
- package/dist/enum/consumer/wallet-ledger-internal-type.enum.d.ts +14 -0
- package/dist/enum/consumer/wallet-ledger-internal-type.enum.d.ts.map +1 -0
- package/dist/enum/consumer/wallet-ledger-internal-type.enum.js +18 -0
- package/dist/enum/consumer/wallet-ledger-internal-type.enum.js.map +1 -0
- package/dist/enum/consumer/wallet-ledger-source.enum.d.ts +7 -0
- package/dist/enum/consumer/wallet-ledger-source.enum.d.ts.map +1 -0
- package/dist/enum/consumer/wallet-ledger-source.enum.js +11 -0
- package/dist/enum/consumer/wallet-ledger-source.enum.js.map +1 -0
- package/dist/enum/index.d.ts +1 -1
- package/dist/enum/index.d.ts.map +1 -1
- package/dist/enum/index.js +7 -1
- package/dist/enum/index.js.map +1 -1
- package/dist/enum/payment-entity-type.enum.d.ts +2 -1
- package/dist/enum/payment-entity-type.enum.d.ts.map +1 -1
- package/dist/enum/payment-entity-type.enum.js +1 -0
- package/dist/enum/payment-entity-type.enum.js.map +1 -1
- package/dist/models/api/consumer/admin-consumer.api.model.d.ts +67 -0
- package/dist/models/api/consumer/admin-consumer.api.model.d.ts.map +1 -0
- package/dist/models/api/consumer/admin-consumer.api.model.js +3 -0
- package/dist/models/api/consumer/admin-consumer.api.model.js.map +1 -0
- package/dist/models/api/consumer/consumer-push-token.api.model.d.ts +22 -0
- package/dist/models/api/consumer/consumer-push-token.api.model.d.ts.map +1 -0
- package/dist/models/api/consumer/consumer-push-token.api.model.js +3 -0
- package/dist/models/api/consumer/consumer-push-token.api.model.js.map +1 -0
- package/dist/models/api/consumer/consumer-vehicle.api.model.d.ts +42 -0
- package/dist/models/api/consumer/consumer-vehicle.api.model.d.ts.map +1 -0
- package/dist/models/api/consumer/consumer-vehicle.api.model.js +3 -0
- package/dist/models/api/consumer/consumer-vehicle.api.model.js.map +1 -0
- package/dist/models/api/consumer/consumer-wallet.api.model.d.ts +8 -0
- package/dist/models/api/consumer/consumer-wallet.api.model.d.ts.map +1 -1
- package/dist/models/api/consumer/index.d.ts +4 -1
- package/dist/models/api/consumer/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/enum/consumer/index.ts +6 -0
- package/src/enum/consumer/push-token-platform.enum.ts +6 -0
- package/src/enum/consumer/push-token-provider.enum.ts +4 -0
- package/src/enum/consumer/wallet-hold-source-type.enum.ts +5 -0
- package/src/enum/consumer/wallet-hold-status.enum.ts +12 -0
- package/src/enum/consumer/wallet-ledger-internal-type.enum.ts +13 -0
- package/src/enum/consumer/wallet-ledger-source.enum.ts +6 -0
- package/src/enum/index.ts +11 -1
- package/src/enum/payment-entity-type.enum.ts +1 -0
- package/src/models/api/consumer/admin-consumer.api.model.ts +87 -0
- package/src/models/api/consumer/consumer-push-token.api.model.ts +24 -0
- package/src/models/api/consumer/consumer-vehicle.api.model.ts +46 -0
- package/src/models/api/consumer/consumer-wallet.api.model.ts +9 -0
- package/src/models/api/consumer/index.ts +24 -0
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
export { WalletTransactionType } from './wallet-transaction-type.enum';
|
|
2
2
|
export { WalletTransactionReason } from './wallet-transaction-reason.enum';
|
|
3
|
+
export { WalletHoldStatus } from './wallet-hold-status.enum';
|
|
4
|
+
export { WalletHoldSourceType } from './wallet-hold-source-type.enum';
|
|
5
|
+
export { WalletLedgerInternalType } from './wallet-ledger-internal-type.enum';
|
|
6
|
+
export { WalletLedgerSource } from './wallet-ledger-source.enum';
|
|
7
|
+
export { PushTokenProvider } from './push-token-provider.enum';
|
|
8
|
+
export { PushTokenPlatform } from './push-token-platform.enum';
|
|
3
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACtE,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WalletTransactionReason = exports.WalletTransactionType = void 0;
|
|
3
|
+
exports.PushTokenPlatform = exports.PushTokenProvider = exports.WalletLedgerSource = exports.WalletLedgerInternalType = exports.WalletHoldSourceType = exports.WalletHoldStatus = exports.WalletTransactionReason = exports.WalletTransactionType = void 0;
|
|
4
4
|
var wallet_transaction_type_enum_1 = require("./wallet-transaction-type.enum");
|
|
5
5
|
Object.defineProperty(exports, "WalletTransactionType", { enumerable: true, get: function () { return wallet_transaction_type_enum_1.WalletTransactionType; } });
|
|
6
6
|
var wallet_transaction_reason_enum_1 = require("./wallet-transaction-reason.enum");
|
|
7
7
|
Object.defineProperty(exports, "WalletTransactionReason", { enumerable: true, get: function () { return wallet_transaction_reason_enum_1.WalletTransactionReason; } });
|
|
8
|
+
var wallet_hold_status_enum_1 = require("./wallet-hold-status.enum");
|
|
9
|
+
Object.defineProperty(exports, "WalletHoldStatus", { enumerable: true, get: function () { return wallet_hold_status_enum_1.WalletHoldStatus; } });
|
|
10
|
+
var wallet_hold_source_type_enum_1 = require("./wallet-hold-source-type.enum");
|
|
11
|
+
Object.defineProperty(exports, "WalletHoldSourceType", { enumerable: true, get: function () { return wallet_hold_source_type_enum_1.WalletHoldSourceType; } });
|
|
12
|
+
var wallet_ledger_internal_type_enum_1 = require("./wallet-ledger-internal-type.enum");
|
|
13
|
+
Object.defineProperty(exports, "WalletLedgerInternalType", { enumerable: true, get: function () { return wallet_ledger_internal_type_enum_1.WalletLedgerInternalType; } });
|
|
14
|
+
var wallet_ledger_source_enum_1 = require("./wallet-ledger-source.enum");
|
|
15
|
+
Object.defineProperty(exports, "WalletLedgerSource", { enumerable: true, get: function () { return wallet_ledger_source_enum_1.WalletLedgerSource; } });
|
|
16
|
+
var push_token_provider_enum_1 = require("./push-token-provider.enum");
|
|
17
|
+
Object.defineProperty(exports, "PushTokenProvider", { enumerable: true, get: function () { return push_token_provider_enum_1.PushTokenProvider; } });
|
|
18
|
+
var push_token_platform_enum_1 = require("./push-token-platform.enum");
|
|
19
|
+
Object.defineProperty(exports, "PushTokenPlatform", { enumerable: true, get: function () { return push_token_platform_enum_1.PushTokenPlatform; } });
|
|
8
20
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enum/consumer/index.ts"],"names":[],"mappings":";;;AAAA,+EAAuE;AAA9D,qIAAA,qBAAqB,OAAA;AAC9B,mFAA2E;AAAlE,yIAAA,uBAAuB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/enum/consumer/index.ts"],"names":[],"mappings":";;;AAAA,+EAAuE;AAA9D,qIAAA,qBAAqB,OAAA;AAC9B,mFAA2E;AAAlE,yIAAA,uBAAuB,OAAA;AAChC,qEAA6D;AAApD,2HAAA,gBAAgB,OAAA;AACzB,+EAAsE;AAA7D,oIAAA,oBAAoB,OAAA;AAC7B,uFAA8E;AAArE,4IAAA,wBAAwB,OAAA;AACjC,yEAAiE;AAAxD,+HAAA,kBAAkB,OAAA;AAC3B,uEAA+D;AAAtD,6HAAA,iBAAiB,OAAA;AAC1B,uEAA+D;AAAtD,6HAAA,iBAAiB,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-token-platform.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/push-token-platform.enum.ts"],"names":[],"mappings":"AAAA,kDAAkD;AAClD,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,GAAG,QAAQ;IACX,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PushTokenPlatform = void 0;
|
|
4
|
+
/** Device class the token was registered from. */
|
|
5
|
+
var PushTokenPlatform;
|
|
6
|
+
(function (PushTokenPlatform) {
|
|
7
|
+
PushTokenPlatform["Android"] = "android";
|
|
8
|
+
PushTokenPlatform["Ios"] = "ios";
|
|
9
|
+
PushTokenPlatform["Web"] = "web";
|
|
10
|
+
})(PushTokenPlatform = exports.PushTokenPlatform || (exports.PushTokenPlatform = {}));
|
|
11
|
+
//# sourceMappingURL=push-token-platform.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-token-platform.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/push-token-platform.enum.ts"],"names":[],"mappings":";;;AAAA,kDAAkD;AAClD,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,gCAAW,CAAA;IACX,gCAAW,CAAA;AACb,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-token-provider.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/push-token-provider.enum.ts"],"names":[],"mappings":"AAAA,kFAAkF;AAClF,oBAAY,iBAAiB;IAC3B,GAAG,QAAQ;CACZ"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.PushTokenProvider = void 0;
|
|
4
|
+
/** Who issued the push token. Add a value here rather than renaming the table. */
|
|
5
|
+
var PushTokenProvider;
|
|
6
|
+
(function (PushTokenProvider) {
|
|
7
|
+
PushTokenProvider["Fcm"] = "fcm";
|
|
8
|
+
})(PushTokenProvider = exports.PushTokenProvider || (exports.PushTokenProvider = {}));
|
|
9
|
+
//# sourceMappingURL=push-token-provider.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"push-token-provider.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/push-token-provider.enum.ts"],"names":[],"mappings":";;;AAAA,kFAAkF;AAClF,IAAY,iBAEX;AAFD,WAAY,iBAAiB;IAC3B,gCAAW,CAAA;AACb,CAAC,EAFW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAE5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-hold-source-type.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-hold-source-type.enum.ts"],"names":[],"mappings":"AAAA,8FAA8F;AAC9F,oBAAY,oBAAoB;IAC9B,OAAO,YAAY;IACnB,IAAI,SAAS;CACd"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletHoldSourceType = void 0;
|
|
4
|
+
/** What asked for the hold. `Booking` is native this phase; `Ocpi` is a roaming authorize. */
|
|
5
|
+
var WalletHoldSourceType;
|
|
6
|
+
(function (WalletHoldSourceType) {
|
|
7
|
+
WalletHoldSourceType["Booking"] = "booking";
|
|
8
|
+
WalletHoldSourceType["Ocpi"] = "ocpi";
|
|
9
|
+
})(WalletHoldSourceType = exports.WalletHoldSourceType || (exports.WalletHoldSourceType = {}));
|
|
10
|
+
//# sourceMappingURL=wallet-hold-source-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-hold-source-type.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-hold-source-type.enum.ts"],"names":[],"mappings":";;;AAAA,8FAA8F;AAC9F,IAAY,oBAGX;AAHD,WAAY,oBAAoB;IAC9B,2CAAmB,CAAA;IACnB,qCAAa,CAAA;AACf,CAAC,EAHW,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAG/B"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle of one reservation of prepaid wallet money.
|
|
3
|
+
*
|
|
4
|
+
* `PartiallyCaptured` is terminal: the session billed some of the hold and the rest came back
|
|
5
|
+
* as Refund to wallet. It is not an in-progress state.
|
|
6
|
+
*/
|
|
7
|
+
export declare enum WalletHoldStatus {
|
|
8
|
+
Open = "open",
|
|
9
|
+
PartiallyCaptured = "partially_captured",
|
|
10
|
+
Captured = "captured",
|
|
11
|
+
Released = "released"
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=wallet-hold-status.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-hold-status.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-hold-status.enum.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,oBAAY,gBAAgB;IAC1B,IAAI,SAAS;IACb,iBAAiB,uBAAuB;IACxC,QAAQ,aAAa;IACrB,QAAQ,aAAa;CACtB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletHoldStatus = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Lifecycle of one reservation of prepaid wallet money.
|
|
6
|
+
*
|
|
7
|
+
* `PartiallyCaptured` is terminal: the session billed some of the hold and the rest came back
|
|
8
|
+
* as Refund to wallet. It is not an in-progress state.
|
|
9
|
+
*/
|
|
10
|
+
var WalletHoldStatus;
|
|
11
|
+
(function (WalletHoldStatus) {
|
|
12
|
+
WalletHoldStatus["Open"] = "open";
|
|
13
|
+
WalletHoldStatus["PartiallyCaptured"] = "partially_captured";
|
|
14
|
+
WalletHoldStatus["Captured"] = "captured";
|
|
15
|
+
WalletHoldStatus["Released"] = "released";
|
|
16
|
+
})(WalletHoldStatus = exports.WalletHoldStatus || (exports.WalletHoldStatus = {}));
|
|
17
|
+
//# sourceMappingURL=wallet-hold-status.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-hold-status.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-hold-status.enum.ts"],"names":[],"mappings":";;;AAAA;;;;;GAKG;AACH,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iCAAa,CAAA;IACb,4DAAwC,CAAA;IACxC,yCAAqB,CAAA;IACrB,yCAAqB,CAAA;AACvB,CAAC,EALW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAK3B"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accounting operation on the wallet ledger.
|
|
3
|
+
*
|
|
4
|
+
* Only `Credit`, `Release`, `Hold`, and `Admin*` move available balance. `Capture` does not.
|
|
5
|
+
*/
|
|
6
|
+
export declare enum WalletLedgerInternalType {
|
|
7
|
+
Credit = "credit",
|
|
8
|
+
Hold = "hold",
|
|
9
|
+
Capture = "capture",
|
|
10
|
+
Release = "release",
|
|
11
|
+
AdminCredit = "admin_credit",
|
|
12
|
+
AdminDebit = "admin_debit"
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=wallet-ledger-internal-type.enum.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ledger-internal-type.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-ledger-internal-type.enum.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,oBAAY,wBAAwB;IAClC,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,UAAU,gBAAgB;CAC3B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletLedgerInternalType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Accounting operation on the wallet ledger.
|
|
6
|
+
*
|
|
7
|
+
* Only `Credit`, `Release`, `Hold`, and `Admin*` move available balance. `Capture` does not.
|
|
8
|
+
*/
|
|
9
|
+
var WalletLedgerInternalType;
|
|
10
|
+
(function (WalletLedgerInternalType) {
|
|
11
|
+
WalletLedgerInternalType["Credit"] = "credit";
|
|
12
|
+
WalletLedgerInternalType["Hold"] = "hold";
|
|
13
|
+
WalletLedgerInternalType["Capture"] = "capture";
|
|
14
|
+
WalletLedgerInternalType["Release"] = "release";
|
|
15
|
+
WalletLedgerInternalType["AdminCredit"] = "admin_credit";
|
|
16
|
+
WalletLedgerInternalType["AdminDebit"] = "admin_debit";
|
|
17
|
+
})(WalletLedgerInternalType = exports.WalletLedgerInternalType || (exports.WalletLedgerInternalType = {}));
|
|
18
|
+
//# sourceMappingURL=wallet-ledger-internal-type.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ledger-internal-type.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-ledger-internal-type.enum.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,IAAY,wBAOX;AAPD,WAAY,wBAAwB;IAClC,6CAAiB,CAAA;IACjB,yCAAa,CAAA;IACb,+CAAmB,CAAA;IACnB,+CAAmB,CAAA;IACnB,wDAA4B,CAAA;IAC5B,sDAA0B,CAAA;AAC5B,CAAC,EAPW,wBAAwB,GAAxB,gCAAwB,KAAxB,gCAAwB,QAOnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ledger-source.enum.d.ts","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-ledger-source.enum.ts"],"names":[],"mappings":"AAAA,mDAAmD;AACnD,oBAAY,kBAAkB;IAC5B,SAAS,eAAe;IACxB,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.WalletLedgerSource = void 0;
|
|
4
|
+
/** Which surface triggered a wallet ledger row. */
|
|
5
|
+
var WalletLedgerSource;
|
|
6
|
+
(function (WalletLedgerSource) {
|
|
7
|
+
WalletLedgerSource["PublicApp"] = "public_app";
|
|
8
|
+
WalletLedgerSource["System"] = "system";
|
|
9
|
+
WalletLedgerSource["Admin"] = "admin";
|
|
10
|
+
})(WalletLedgerSource = exports.WalletLedgerSource || (exports.WalletLedgerSource = {}));
|
|
11
|
+
//# sourceMappingURL=wallet-ledger-source.enum.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wallet-ledger-source.enum.js","sourceRoot":"","sources":["../../../src/enum/consumer/wallet-ledger-source.enum.ts"],"names":[],"mappings":";;;AAAA,mDAAmD;AACnD,IAAY,kBAIX;AAJD,WAAY,kBAAkB;IAC5B,8CAAwB,CAAA;IACxB,uCAAiB,CAAA;IACjB,qCAAe,CAAA;AACjB,CAAC,EAJW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAI7B"}
|
package/dist/enum/index.d.ts
CHANGED
|
@@ -43,7 +43,7 @@ export { RefundDestination } from './refund-destination.enum';
|
|
|
43
43
|
export { TariffScope } from './tariff-scope.enum';
|
|
44
44
|
export { FeeComponentType, FeeUnit, RateDurationUnit, TariffRuleType, ConnectorOutputType, PromotionAdjustmentType, PromotionAppliesTo, } from './pricing';
|
|
45
45
|
export { CampaignScopeType, CampaignAudienceType } from './marketing';
|
|
46
|
-
export { WalletTransactionType, WalletTransactionReason } from './consumer';
|
|
46
|
+
export { WalletTransactionType, WalletTransactionReason, WalletHoldStatus, WalletHoldSourceType, WalletLedgerInternalType, WalletLedgerSource, PushTokenProvider, PushTokenPlatform, } from './consumer';
|
|
47
47
|
export { CompanyType } from './company-type.enum';
|
|
48
48
|
export { CompanyStatus } from './company-status.enum';
|
|
49
49
|
/** @deprecated Use UserRoleStatus instead */
|
package/dist/enum/index.d.ts.map
CHANGED
|
@@ -1 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C1D,OAAO,EAAC,mBAAmB,EAAC,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,iBAAiB,EAAC,MAAM,4BAA4B,CAAC"}
|
package/dist/enum/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.PromotionAppliesTo = exports.PromotionAdjustmentType = exports.ConnectorOutputType = exports.TariffRuleType = exports.RateDurationUnit = exports.FeeUnit = exports.FeeComponentType = exports.TariffScope = exports.RefundDestination = exports.RefundReason = exports.RefundStatus = exports.PaymentTransactionStatus = exports.PaymentProvider = exports.PaymentEntityType = exports.ApiErrorCode = exports.FleetUserRole = exports.FleetStationVisibilityStatus = exports.FranchiseStationAccessStatus = exports.OrderStopSourceEnum = exports.StationAccessCapability = exports.ChargerAllowedMode = exports.StationStatus = exports.OrderStopReason = exports.GstType = exports.TaxCategory = exports.SupportQueriesStatus = exports.AppType = exports.TimeUnit = exports.PaymentMethod = exports.BookingStatus = exports.TransactionReason = exports.TransactionType = exports.PaymentStatus = exports.EntityType = exports.VehicleType = exports.SessionAccessContext = exports.OrderType = exports.OrderState = exports.ConnectorType = exports.ConnectorStatus = exports.SessionEligibility = exports.ChargerStatus = exports.CapacityUnit = exports.Roles = exports.PointType = exports.ChargerLocationType = exports.ColorTheme = exports.FranchiseType = exports.FirebaseProviderType = exports.Collection = void 0;
|
|
4
|
-
exports.StationAccessType = exports.StationFacility = exports.StationSearchSource = exports.SettlementStatus = exports.ChargerResetType = exports.ChargerOperationalState = exports.ChargerPhysicalState = exports.CompanyUserEntityAccessStatus = exports.CompanyUserEntityRole = exports.FleetUserAccessStatus = exports.FleetStatus = exports.FranchiseStatus = exports.RevenueContractType = exports.PricingControl = exports.RevenueModel = exports.BusinessOperation = exports.BusinessOwnership = exports.FranchiseBusinessType = exports.UserRoleStatus = exports.CompanyUserStatus = exports.CompanyStatus = exports.CompanyType = exports.WalletTransactionReason = exports.WalletTransactionType = exports.CampaignAudienceType = exports.CampaignScopeType = void 0;
|
|
4
|
+
exports.StationAccessType = exports.StationFacility = exports.StationSearchSource = exports.SettlementStatus = exports.ChargerResetType = exports.ChargerOperationalState = exports.ChargerPhysicalState = exports.CompanyUserEntityAccessStatus = exports.CompanyUserEntityRole = exports.FleetUserAccessStatus = exports.FleetStatus = exports.FranchiseStatus = exports.RevenueContractType = exports.PricingControl = exports.RevenueModel = exports.BusinessOperation = exports.BusinessOwnership = exports.FranchiseBusinessType = exports.UserRoleStatus = exports.CompanyUserStatus = exports.CompanyStatus = exports.CompanyType = exports.PushTokenPlatform = exports.PushTokenProvider = exports.WalletLedgerSource = exports.WalletLedgerInternalType = exports.WalletHoldSourceType = exports.WalletHoldStatus = exports.WalletTransactionReason = exports.WalletTransactionType = exports.CampaignAudienceType = exports.CampaignScopeType = void 0;
|
|
5
5
|
var firestore_collections_enum_1 = require("./firestore-collections.enum");
|
|
6
6
|
Object.defineProperty(exports, "Collection", { enumerable: true, get: function () { return firestore_collections_enum_1.Collection; } });
|
|
7
7
|
var firebase_provider_type_1 = require("./firebase-provider-type");
|
|
@@ -102,6 +102,12 @@ Object.defineProperty(exports, "CampaignAudienceType", { enumerable: true, get:
|
|
|
102
102
|
var consumer_1 = require("./consumer");
|
|
103
103
|
Object.defineProperty(exports, "WalletTransactionType", { enumerable: true, get: function () { return consumer_1.WalletTransactionType; } });
|
|
104
104
|
Object.defineProperty(exports, "WalletTransactionReason", { enumerable: true, get: function () { return consumer_1.WalletTransactionReason; } });
|
|
105
|
+
Object.defineProperty(exports, "WalletHoldStatus", { enumerable: true, get: function () { return consumer_1.WalletHoldStatus; } });
|
|
106
|
+
Object.defineProperty(exports, "WalletHoldSourceType", { enumerable: true, get: function () { return consumer_1.WalletHoldSourceType; } });
|
|
107
|
+
Object.defineProperty(exports, "WalletLedgerInternalType", { enumerable: true, get: function () { return consumer_1.WalletLedgerInternalType; } });
|
|
108
|
+
Object.defineProperty(exports, "WalletLedgerSource", { enumerable: true, get: function () { return consumer_1.WalletLedgerSource; } });
|
|
109
|
+
Object.defineProperty(exports, "PushTokenProvider", { enumerable: true, get: function () { return consumer_1.PushTokenProvider; } });
|
|
110
|
+
Object.defineProperty(exports, "PushTokenPlatform", { enumerable: true, get: function () { return consumer_1.PushTokenPlatform; } });
|
|
105
111
|
var company_type_enum_1 = require("./company-type.enum");
|
|
106
112
|
Object.defineProperty(exports, "CompanyType", { enumerable: true, get: function () { return company_type_enum_1.CompanyType; } });
|
|
107
113
|
var company_status_enum_1 = require("./company-status.enum");
|
package/dist/enum/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/enum/index.ts"],"names":[],"mappings":";;;;AAAA,2EAAwD;AAAhD,wHAAA,UAAU,OAAA;AAClB,mEAA8D;AAAtD,8HAAA,oBAAoB,OAAA;AAC5B,6DAAoD;AAA5C,oHAAA,aAAa,OAAA;AACrB,uDAA8C;AAAtC,8GAAA,UAAU,OAAA;AAClB,2EAAiE;AAAzD,iIAAA,mBAAmB,OAAA;AAC3B,qDAA4C;AAApC,4GAAA,SAAS,OAAA;AACjB,2CAAmC;AAA3B,mGAAA,KAAK,OAAA;AACb,yDAAiD;AAAzC,iHAAA,YAAY,OAAA;AACpB,6DAAoD;AAA5C,oHAAA,aAAa,OAAA;AACrB,uEAA8D;AAAtD,8HAAA,kBAAkB,OAAA;AAC1B,iEAAwD;AAAhD,wHAAA,eAAe,OAAA;AACvB,6DAAoD;AAA5C,oHAAA,aAAa,OAAA;AACrB,uDAA8C;AAAtC,8GAAA,UAAU,OAAA;AAClB,qDAA4C;AAApC,4GAAA,SAAS,OAAA;AACjB,6EAAmE;AAA3D,mIAAA,oBAAoB,OAAA;AAC5B,yDAAgD;AAAxC,gHAAA,WAAW,OAAA;AACnB,6CAAyC;AAAjC,yGAAA,UAAU,OA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;AAClB,6GAAA,iBAAiB,OAAA;AACjB,6GAAA,iBAAiB,OAAA;AAGnB,yDAAgD;AAAxC,gHAAA,WAAW,OAAA;AACnB,6DAAoD;AAA5C,oHAAA,aAAa,OAAA;AACrB,6CAA6C;AAC7C,uEAA6D;AAArD,6HAAA,iBAAiB,OAAA;AACzB,iEAAuD;AAA/C,uHAAA,cAAc,OAAA;AACtB,+EAAqE;AAA7D,qIAAA,qBAAqB,OAAA;AAC7B,qEAA4D;AAApD,4HAAA,iBAAiB,OAAA;AACzB,qEAA4D;AAApD,4HAAA,iBAAiB,OAAA;AACzB,2DAAkD;AAA1C,kHAAA,YAAY,OAAA;AACpB,+DAAsD;AAA9C,sHAAA,cAAc,OAAA;AACtB,2EAAiE;AAAzD,iIAAA,mBAAmB,OAAA;AAC3B,iEAAwD;AAAhD,wHAAA,eAAe,OAAA;AACvB,yDAAgD;AAAxC,gHAAA,WAAW,OAAA;AACnB,iFAAsE;AAA9D,sIAAA,qBAAqB,OAAA;AAC7B,iFAAsE;AAA9D,sIAAA,qBAAqB,OAAA;AAC7B,mGAAuF;AAA/E,uJAAA,6BAA6B,OAAA;AACrC,6EAAmE;AAA3D,mIAAA,oBAAoB,OAAA;AAC5B,mFAAyE;AAAjE,yIAAA,uBAAuB,OAAA;AAC/B,qEAA2D;AAAnD,2HAAA,gBAAgB,OAAA;AACxB,mEAA0D;AAAlD,0HAAA,gBAAgB,OAAA;AACxB,2EAAiE;AAAzD,iIAAA,mBAAmB,OAAA;AAC3B,iEAAwD;AAAhD,wHAAA,eAAe,OAAA;AACvB,uEAA6D;AAArD,6HAAA,iBAAiB,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-entity-type.enum.d.ts","sourceRoot":"","sources":["../../src/enum/payment-entity-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,WAAW,iBAAiB;
|
|
1
|
+
{"version":3,"file":"payment-entity-type.enum.d.ts","sourceRoot":"","sources":["../../src/enum/payment-entity-type.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,iBAAiB;IAC3B,OAAO,YAAY;IACnB,WAAW,iBAAiB;IAC5B,OAAO,YAAY;CACpB"}
|
|
@@ -5,5 +5,6 @@ var PaymentEntityType;
|
|
|
5
5
|
(function (PaymentEntityType) {
|
|
6
6
|
PaymentEntityType["Booking"] = "booking";
|
|
7
7
|
PaymentEntityType["WalletTopup"] = "wallet_topup";
|
|
8
|
+
PaymentEntityType["Unknown"] = "unknown";
|
|
8
9
|
})(PaymentEntityType = exports.PaymentEntityType || (exports.PaymentEntityType = {}));
|
|
9
10
|
//# sourceMappingURL=payment-entity-type.enum.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payment-entity-type.enum.js","sourceRoot":"","sources":["../../src/enum/payment-entity-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
1
|
+
{"version":3,"file":"payment-entity-type.enum.js","sourceRoot":"","sources":["../../src/enum/payment-entity-type.enum.ts"],"names":[],"mappings":";;;AAAA,IAAY,iBAIX;AAJD,WAAY,iBAAiB;IAC3B,wCAAmB,CAAA;IACnB,iDAA4B,CAAA;IAC5B,wCAAmB,CAAA;AACrB,CAAC,EAJW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAI5B"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { WalletTransactionType } from '../../../enum/consumer';
|
|
2
|
+
import { PhoneNumberModel } from '../../phone-number-model';
|
|
3
|
+
import { ApiSortDirection } from '../users/admin-user.api.model';
|
|
4
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
5
|
+
import { ConsumerAccountApiModel, ConsumerProfileApiModel, ConsumerWalletApiModel, UpdateConsumerProfileRequest, WalletTransactionListApiModel } from './consumer-wallet.api.model';
|
|
6
|
+
import { ConsumerAccountVehicleApiModel } from './consumer-vehicle.api.model';
|
|
7
|
+
/** GET /api/admin/consumers */
|
|
8
|
+
export type AdminConsumerListOrderBy = 'firstName' | 'lastName' | 'email' | 'createdAt' | 'walletBalance';
|
|
9
|
+
export interface AdminConsumerListItemApiModel {
|
|
10
|
+
/** consumer.accounts.id (uuid). */
|
|
11
|
+
accountId: string;
|
|
12
|
+
firebaseUid: string;
|
|
13
|
+
firstName: string;
|
|
14
|
+
lastName: string | null;
|
|
15
|
+
email: string | null;
|
|
16
|
+
phoneNumber: PhoneNumberModel | null;
|
|
17
|
+
isBlocked: boolean;
|
|
18
|
+
/** Spendable balance in rupees. */
|
|
19
|
+
walletBalance: number;
|
|
20
|
+
createdAt: IsoDateTime;
|
|
21
|
+
}
|
|
22
|
+
export interface AdminConsumerListApiModel {
|
|
23
|
+
rows: AdminConsumerListItemApiModel[];
|
|
24
|
+
totalCount: number;
|
|
25
|
+
pageIndex: number;
|
|
26
|
+
pageSize: number;
|
|
27
|
+
orderBy: AdminConsumerListOrderBy;
|
|
28
|
+
sortDirection: ApiSortDirection;
|
|
29
|
+
}
|
|
30
|
+
export interface AdminConsumerAccountApiModel extends ConsumerAccountApiModel {
|
|
31
|
+
blockedReason: string | null;
|
|
32
|
+
blockedAt: IsoDateTime | null;
|
|
33
|
+
legacyFirestoreId: string | null;
|
|
34
|
+
}
|
|
35
|
+
/** GET /api/admin/consumers/:id — `:id` is account UUID, Firebase uid, or legacy Firestore id. */
|
|
36
|
+
export interface AdminConsumerDetailApiModel {
|
|
37
|
+
profile: ConsumerProfileApiModel;
|
|
38
|
+
account: AdminConsumerAccountApiModel;
|
|
39
|
+
wallet: ConsumerWalletApiModel;
|
|
40
|
+
vehicles: ConsumerAccountVehicleApiModel[];
|
|
41
|
+
createdAt: IsoDateTime;
|
|
42
|
+
}
|
|
43
|
+
/** PATCH /api/admin/consumers/:id */
|
|
44
|
+
export type AdminUpdateConsumerRequest = UpdateConsumerProfileRequest;
|
|
45
|
+
/** PATCH /api/admin/consumers/:id/block */
|
|
46
|
+
export interface BlockConsumerRequest {
|
|
47
|
+
isBlocked: boolean;
|
|
48
|
+
reason?: string | null;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* POST /api/admin/consumers/:id/wallet/adjust
|
|
52
|
+
*
|
|
53
|
+
* Reason is always `admin`. Replaying `idempotencyKey` is a no-op.
|
|
54
|
+
*/
|
|
55
|
+
export interface AdjustConsumerWalletRequest {
|
|
56
|
+
type: WalletTransactionType;
|
|
57
|
+
amount: number;
|
|
58
|
+
note?: string | null;
|
|
59
|
+
idempotencyKey: string;
|
|
60
|
+
}
|
|
61
|
+
export interface AdjustConsumerWalletResponse {
|
|
62
|
+
wallet: ConsumerWalletApiModel;
|
|
63
|
+
replayed: boolean;
|
|
64
|
+
}
|
|
65
|
+
/** GET /api/admin/consumers/:id/wallet/transactions */
|
|
66
|
+
export type AdminConsumerWalletTransactionListApiModel = WalletTransactionListApiModel;
|
|
67
|
+
//# sourceMappingURL=admin-consumer.api.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-consumer.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/admin-consumer.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,sBAAsB,EACtB,4BAA4B,EAC5B,6BAA6B,EAC9B,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAE9E,+BAA+B;AAC/B,MAAM,MAAM,wBAAwB,GAChC,WAAW,GACX,UAAU,GACV,OAAO,GACP,WAAW,GACX,eAAe,CAAC;AAEpB,MAAM,WAAW,6BAA6B;IAC5C,mC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,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,uDAAuD;AACvD,MAAM,MAAM,0CAA0C,GAAG,6BAA6B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"admin-consumer.api.model.js","sourceRoot":"","sources":["../../../../src/models/api/consumer/admin-consumer.api.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { PushTokenPlatform, PushTokenProvider } from '../../../enum/consumer';
|
|
2
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
3
|
+
/** POST /api/consumer/me/push-tokens — register or refresh a device token. */
|
|
4
|
+
export interface RegisterPushTokenRequest {
|
|
5
|
+
token: string;
|
|
6
|
+
provider?: PushTokenProvider;
|
|
7
|
+
platform?: PushTokenPlatform;
|
|
8
|
+
}
|
|
9
|
+
export interface ConsumerPushTokenApiModel {
|
|
10
|
+
/** consumer.push_tokens.id (uuid). */
|
|
11
|
+
id: string;
|
|
12
|
+
token: string;
|
|
13
|
+
provider: PushTokenProvider;
|
|
14
|
+
platform: PushTokenPlatform | null;
|
|
15
|
+
lastSeenAt: IsoDateTime;
|
|
16
|
+
}
|
|
17
|
+
/** DELETE /api/consumer/me/push-tokens — body, because the token is too long for a path. */
|
|
18
|
+
export interface UnregisterPushTokenRequest {
|
|
19
|
+
token: string;
|
|
20
|
+
provider?: PushTokenProvider;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=consumer-push-token.api.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-push-token.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-push-token.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,8EAA8E;AAC9E,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,yBAAyB;IACxC,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,QAAQ,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACnC,UAAU,EAAE,WAAW,CAAC;CACzB;AAED,4FAA4F;AAC5F,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-push-token.api.model.js","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-push-token.api.model.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { VehicleTypeCatalog } from '../../../consts/catalog/vehicle-type.const';
|
|
2
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
3
|
+
/**
|
|
4
|
+
* A car the customer owns. Distinct from `catalog.vehicles`, which is an EV model.
|
|
5
|
+
*
|
|
6
|
+
* Catalog cars resolve brand/model/image from the join. Custom cars carry those fields on the row.
|
|
7
|
+
*/
|
|
8
|
+
export interface ConsumerAccountVehicleApiModel {
|
|
9
|
+
/** consumer.account_vehicles.id (uuid). */
|
|
10
|
+
id: string;
|
|
11
|
+
registrationNo: string;
|
|
12
|
+
isCustom: boolean;
|
|
13
|
+
/** Null when `isCustom`. */
|
|
14
|
+
catalogVehicleId: string | null;
|
|
15
|
+
brandName: string | null;
|
|
16
|
+
modelName: string | null;
|
|
17
|
+
vehicleType: VehicleTypeCatalog | null;
|
|
18
|
+
/** Catalog image; null for custom cars. */
|
|
19
|
+
image: string | null;
|
|
20
|
+
lastUsedAt: IsoDateTime | null;
|
|
21
|
+
}
|
|
22
|
+
export interface ConsumerAccountVehicleListApiModel {
|
|
23
|
+
rows: ConsumerAccountVehicleApiModel[];
|
|
24
|
+
}
|
|
25
|
+
export interface CreateConsumerAccountVehicleRequest {
|
|
26
|
+
registrationNo: string;
|
|
27
|
+
/** Catalog model id. Omit (and set `isCustom`) for an unlisted car. */
|
|
28
|
+
catalogVehicleId?: string | null;
|
|
29
|
+
isCustom?: boolean;
|
|
30
|
+
brandName?: string;
|
|
31
|
+
modelName?: string;
|
|
32
|
+
vehicleType?: VehicleTypeCatalog;
|
|
33
|
+
}
|
|
34
|
+
export interface UpdateConsumerAccountVehicleRequest {
|
|
35
|
+
registrationNo?: string;
|
|
36
|
+
catalogVehicleId?: string | null;
|
|
37
|
+
isCustom?: boolean;
|
|
38
|
+
brandName?: string | null;
|
|
39
|
+
modelName?: string | null;
|
|
40
|
+
vehicleType?: VehicleTypeCatalog | null;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=consumer-vehicle.api.model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-vehicle.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-vehicle.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;GAIG;AAEH,MAAM,WAAW,8BAA8B;IAC7C,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,4BAA4B;IAC5B,gBAAgB,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,WAAW,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACvC,2CAA2C;IAC3C,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,WAAW,GAAG,IAAI,CAAC;CAChC;AAED,MAAM,WAAW,kCAAkC;IACjD,IAAI,EAAE,8BAA8B,EAAE,CAAC;CACxC;AAED,MAAM,WAAW,mCAAmC;IAClD,cAAc,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,kBAAkB,CAAC;CAClC;AAED,MAAM,WAAW,mCAAmC;IAClD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACzC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consumer-vehicle.api.model.js","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-vehicle.api.model.ts"],"names":[],"mappings":""}
|
|
@@ -76,6 +76,14 @@ export interface EnsureConsumerRequest {
|
|
|
76
76
|
phoneNumber?: PhoneNumberModel | null;
|
|
77
77
|
photoUrl?: string;
|
|
78
78
|
}
|
|
79
|
+
/** PATCH /api/consumer/me — only sent fields change. Firebase uid is never accepted. */
|
|
80
|
+
export interface UpdateConsumerProfileRequest {
|
|
81
|
+
firstName?: string;
|
|
82
|
+
lastName?: string | null;
|
|
83
|
+
email?: string | null;
|
|
84
|
+
phoneNumber?: PhoneNumberModel | null;
|
|
85
|
+
photoUrl?: string | null;
|
|
86
|
+
}
|
|
79
87
|
export interface ConsumerMeApiModel {
|
|
80
88
|
profile: ConsumerProfileApiModel;
|
|
81
89
|
account: ConsumerAccountApiModel;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"consumer-wallet.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-wallet.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD;;;;;GAKG;AAEH,kCAAkC;AAClC,MAAM,WAAW,sBAAsB;IACrC,kCAAkC;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,oEAAoE;IACpE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iCAAiC;IAChD,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,qBAAqB,CAAC;IAC5B,MAAM,EAAE,uBAAuB,CAAC;IAChC,mDAAmD;IACnD,cAAc,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,SAAS,EAAE,WAAW,CAAC;CACxB;AAED,+CAA+C;AAC/C,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,iCAAiC,EAAE,CAAC;IAC1C,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,gCAAgC;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,WAAW,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACrC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,iBAAiB,EAAE,OAAO,CAAC;CAC5B;AAED,MAAM,WAAW,uBAAuB;IACtC,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,wDAAwD;IACxD,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
1
|
+
{"version":3,"file":"consumer-wallet.api.model.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/consumer-wallet.api.model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AACxF,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,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OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;GAMG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wFAAwF;AACxF,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,gBAAgB,GAAG,IAAI,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,OAAO,EAAE,uBAAuB,CAAC;IACjC,MAAM,EAAE,sBAAsB,CAAC;IAC/B,wDAAwD;IACxD,YAAY,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export { ConsumerWalletApiModel, WalletTransactionListItemApiModel, WalletTransactionListApiModel, ConsumerProfileApiModel, ConsumerAccountApiModel, EnsureConsumerRequest, ConsumerMeApiModel, } from './consumer-wallet.api.model';
|
|
1
|
+
export { ConsumerWalletApiModel, WalletTransactionListItemApiModel, WalletTransactionListApiModel, ConsumerProfileApiModel, ConsumerAccountApiModel, EnsureConsumerRequest, UpdateConsumerProfileRequest, ConsumerMeApiModel, } from './consumer-wallet.api.model';
|
|
2
|
+
export { ConsumerAccountVehicleApiModel, ConsumerAccountVehicleListApiModel, CreateConsumerAccountVehicleRequest, UpdateConsumerAccountVehicleRequest, } from './consumer-vehicle.api.model';
|
|
3
|
+
export { RegisterPushTokenRequest, ConsumerPushTokenApiModel, UnregisterPushTokenRequest, } from './consumer-push-token.api.model';
|
|
4
|
+
export { AdminConsumerListOrderBy, AdminConsumerListItemApiModel, AdminConsumerListApiModel, AdminConsumerAccountApiModel, AdminConsumerDetailApiModel, AdminUpdateConsumerRequest, BlockConsumerRequest, AdjustConsumerWalletRequest, AdjustConsumerWalletResponse, AdminConsumerWalletTransactionListApiModel, } from './admin-consumer.api.model';
|
|
2
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/models/api/consumer/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,iCAAiC,EACjC,6BAA6B,EAC7B,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,EACrB,4BAA4B,EAC5B,kBAAkB,GACnB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,8BAA8B,EAC9B,kCAAkC,EAClC,mCAAmC,EACnC,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,0BAA0B,GAC3B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACL,wBAAwB,EACxB,6BAA6B,EAC7B,yBAAyB,EACzB,4BAA4B,EAC5B,2BAA2B,EAC3B,0BAA0B,EAC1B,oBAAoB,EACpB,2BAA2B,EAC3B,4BAA4B,EAC5B,0CAA0C,GAC3C,MAAM,4BAA4B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,2 +1,8 @@
|
|
|
1
1
|
export { WalletTransactionType } from './wallet-transaction-type.enum';
|
|
2
2
|
export { WalletTransactionReason } from './wallet-transaction-reason.enum';
|
|
3
|
+
export { WalletHoldStatus } from './wallet-hold-status.enum';
|
|
4
|
+
export { WalletHoldSourceType } from './wallet-hold-source-type.enum';
|
|
5
|
+
export { WalletLedgerInternalType } from './wallet-ledger-internal-type.enum';
|
|
6
|
+
export { WalletLedgerSource } from './wallet-ledger-source.enum';
|
|
7
|
+
export { PushTokenProvider } from './push-token-provider.enum';
|
|
8
|
+
export { PushTokenPlatform } from './push-token-platform.enum';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Lifecycle of one reservation of prepaid wallet money.
|
|
3
|
+
*
|
|
4
|
+
* `PartiallyCaptured` is terminal: the session billed some of the hold and the rest came back
|
|
5
|
+
* as Refund to wallet. It is not an in-progress state.
|
|
6
|
+
*/
|
|
7
|
+
export enum WalletHoldStatus {
|
|
8
|
+
Open = 'open',
|
|
9
|
+
PartiallyCaptured = 'partially_captured',
|
|
10
|
+
Captured = 'captured',
|
|
11
|
+
Released = 'released',
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Accounting operation on the wallet ledger.
|
|
3
|
+
*
|
|
4
|
+
* Only `Credit`, `Release`, `Hold`, and `Admin*` move available balance. `Capture` does not.
|
|
5
|
+
*/
|
|
6
|
+
export enum WalletLedgerInternalType {
|
|
7
|
+
Credit = 'credit',
|
|
8
|
+
Hold = 'hold',
|
|
9
|
+
Capture = 'capture',
|
|
10
|
+
Release = 'release',
|
|
11
|
+
AdminCredit = 'admin_credit',
|
|
12
|
+
AdminDebit = 'admin_debit',
|
|
13
|
+
}
|
package/src/enum/index.ts
CHANGED
|
@@ -51,7 +51,17 @@ export {
|
|
|
51
51
|
PromotionAppliesTo,
|
|
52
52
|
} from './pricing';
|
|
53
53
|
export { CampaignScopeType, CampaignAudienceType } from './marketing';
|
|
54
|
-
export {
|
|
54
|
+
export {
|
|
55
|
+
WalletTransactionType,
|
|
56
|
+
WalletTransactionReason,
|
|
57
|
+
WalletHoldStatus,
|
|
58
|
+
WalletHoldSourceType,
|
|
59
|
+
WalletLedgerInternalType,
|
|
60
|
+
WalletLedgerSource,
|
|
61
|
+
PushTokenProvider,
|
|
62
|
+
PushTokenPlatform,
|
|
63
|
+
} from './consumer';
|
|
64
|
+
|
|
55
65
|
export {CompanyType} from './company-type.enum';
|
|
56
66
|
export {CompanyStatus} from './company-status.enum';
|
|
57
67
|
/** @deprecated Use UserRoleStatus instead */
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { WalletTransactionType } from '../../../enum/consumer';
|
|
2
|
+
import { PhoneNumberModel } from '../../phone-number-model';
|
|
3
|
+
import { ApiSortDirection } from '../users/admin-user.api.model';
|
|
4
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
5
|
+
import {
|
|
6
|
+
ConsumerAccountApiModel,
|
|
7
|
+
ConsumerProfileApiModel,
|
|
8
|
+
ConsumerWalletApiModel,
|
|
9
|
+
UpdateConsumerProfileRequest,
|
|
10
|
+
WalletTransactionListApiModel,
|
|
11
|
+
} from './consumer-wallet.api.model';
|
|
12
|
+
import { ConsumerAccountVehicleApiModel } from './consumer-vehicle.api.model';
|
|
13
|
+
|
|
14
|
+
/** GET /api/admin/consumers */
|
|
15
|
+
export type AdminConsumerListOrderBy =
|
|
16
|
+
| 'firstName'
|
|
17
|
+
| 'lastName'
|
|
18
|
+
| 'email'
|
|
19
|
+
| 'createdAt'
|
|
20
|
+
| 'walletBalance';
|
|
21
|
+
|
|
22
|
+
export interface AdminConsumerListItemApiModel {
|
|
23
|
+
/** consumer.accounts.id (uuid). */
|
|
24
|
+
accountId: string;
|
|
25
|
+
firebaseUid: string;
|
|
26
|
+
firstName: string;
|
|
27
|
+
lastName: string | null;
|
|
28
|
+
email: string | null;
|
|
29
|
+
phoneNumber: PhoneNumberModel | null;
|
|
30
|
+
isBlocked: boolean;
|
|
31
|
+
/** Spendable balance in rupees. */
|
|
32
|
+
walletBalance: number;
|
|
33
|
+
createdAt: IsoDateTime;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface AdminConsumerListApiModel {
|
|
37
|
+
rows: AdminConsumerListItemApiModel[];
|
|
38
|
+
totalCount: number;
|
|
39
|
+
pageIndex: number;
|
|
40
|
+
pageSize: number;
|
|
41
|
+
orderBy: AdminConsumerListOrderBy;
|
|
42
|
+
sortDirection: ApiSortDirection;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface AdminConsumerAccountApiModel extends ConsumerAccountApiModel {
|
|
46
|
+
blockedReason: string | null;
|
|
47
|
+
blockedAt: IsoDateTime | null;
|
|
48
|
+
legacyFirestoreId: string | null;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/** GET /api/admin/consumers/:id — `:id` is account UUID, Firebase uid, or legacy Firestore id. */
|
|
52
|
+
export interface AdminConsumerDetailApiModel {
|
|
53
|
+
profile: ConsumerProfileApiModel;
|
|
54
|
+
account: AdminConsumerAccountApiModel;
|
|
55
|
+
wallet: ConsumerWalletApiModel;
|
|
56
|
+
vehicles: ConsumerAccountVehicleApiModel[];
|
|
57
|
+
createdAt: IsoDateTime;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** PATCH /api/admin/consumers/:id */
|
|
61
|
+
export type AdminUpdateConsumerRequest = UpdateConsumerProfileRequest;
|
|
62
|
+
|
|
63
|
+
/** PATCH /api/admin/consumers/:id/block */
|
|
64
|
+
export interface BlockConsumerRequest {
|
|
65
|
+
isBlocked: boolean;
|
|
66
|
+
reason?: string | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* POST /api/admin/consumers/:id/wallet/adjust
|
|
71
|
+
*
|
|
72
|
+
* Reason is always `admin`. Replaying `idempotencyKey` is a no-op.
|
|
73
|
+
*/
|
|
74
|
+
export interface AdjustConsumerWalletRequest {
|
|
75
|
+
type: WalletTransactionType;
|
|
76
|
+
amount: number;
|
|
77
|
+
note?: string | null;
|
|
78
|
+
idempotencyKey: string;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export interface AdjustConsumerWalletResponse {
|
|
82
|
+
wallet: ConsumerWalletApiModel;
|
|
83
|
+
replayed: boolean;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/** GET /api/admin/consumers/:id/wallet/transactions */
|
|
87
|
+
export type AdminConsumerWalletTransactionListApiModel = WalletTransactionListApiModel;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { PushTokenPlatform, PushTokenProvider } from '../../../enum/consumer';
|
|
2
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
3
|
+
|
|
4
|
+
/** POST /api/consumer/me/push-tokens — register or refresh a device token. */
|
|
5
|
+
export interface RegisterPushTokenRequest {
|
|
6
|
+
token: string;
|
|
7
|
+
provider?: PushTokenProvider;
|
|
8
|
+
platform?: PushTokenPlatform;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface ConsumerPushTokenApiModel {
|
|
12
|
+
/** consumer.push_tokens.id (uuid). */
|
|
13
|
+
id: string;
|
|
14
|
+
token: string;
|
|
15
|
+
provider: PushTokenProvider;
|
|
16
|
+
platform: PushTokenPlatform | null;
|
|
17
|
+
lastSeenAt: IsoDateTime;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/** DELETE /api/consumer/me/push-tokens — body, because the token is too long for a path. */
|
|
21
|
+
export interface UnregisterPushTokenRequest {
|
|
22
|
+
token: string;
|
|
23
|
+
provider?: PushTokenProvider;
|
|
24
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { VehicleTypeCatalog } from '../../../consts/catalog/vehicle-type.const';
|
|
2
|
+
import { IsoDateTime } from '../users/shared.api.model';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* A car the customer owns. Distinct from `catalog.vehicles`, which is an EV model.
|
|
6
|
+
*
|
|
7
|
+
* Catalog cars resolve brand/model/image from the join. Custom cars carry those fields on the row.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export interface ConsumerAccountVehicleApiModel {
|
|
11
|
+
/** consumer.account_vehicles.id (uuid). */
|
|
12
|
+
id: string;
|
|
13
|
+
registrationNo: string;
|
|
14
|
+
isCustom: boolean;
|
|
15
|
+
/** Null when `isCustom`. */
|
|
16
|
+
catalogVehicleId: string | null;
|
|
17
|
+
brandName: string | null;
|
|
18
|
+
modelName: string | null;
|
|
19
|
+
vehicleType: VehicleTypeCatalog | null;
|
|
20
|
+
/** Catalog image; null for custom cars. */
|
|
21
|
+
image: string | null;
|
|
22
|
+
lastUsedAt: IsoDateTime | null;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface ConsumerAccountVehicleListApiModel {
|
|
26
|
+
rows: ConsumerAccountVehicleApiModel[];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export interface CreateConsumerAccountVehicleRequest {
|
|
30
|
+
registrationNo: string;
|
|
31
|
+
/** Catalog model id. Omit (and set `isCustom`) for an unlisted car. */
|
|
32
|
+
catalogVehicleId?: string | null;
|
|
33
|
+
isCustom?: boolean;
|
|
34
|
+
brandName?: string;
|
|
35
|
+
modelName?: string;
|
|
36
|
+
vehicleType?: VehicleTypeCatalog;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface UpdateConsumerAccountVehicleRequest {
|
|
40
|
+
registrationNo?: string;
|
|
41
|
+
catalogVehicleId?: string | null;
|
|
42
|
+
isCustom?: boolean;
|
|
43
|
+
brandName?: string | null;
|
|
44
|
+
modelName?: string | null;
|
|
45
|
+
vehicleType?: VehicleTypeCatalog | null;
|
|
46
|
+
}
|
|
@@ -84,6 +84,15 @@ export interface EnsureConsumerRequest {
|
|
|
84
84
|
photoUrl?: string;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
|
+
/** PATCH /api/consumer/me — only sent fields change. Firebase uid is never accepted. */
|
|
88
|
+
export interface UpdateConsumerProfileRequest {
|
|
89
|
+
firstName?: string;
|
|
90
|
+
lastName?: string | null;
|
|
91
|
+
email?: string | null;
|
|
92
|
+
phoneNumber?: PhoneNumberModel | null;
|
|
93
|
+
photoUrl?: string | null;
|
|
94
|
+
}
|
|
95
|
+
|
|
87
96
|
export interface ConsumerMeApiModel {
|
|
88
97
|
profile: ConsumerProfileApiModel;
|
|
89
98
|
account: ConsumerAccountApiModel;
|
|
@@ -5,5 +5,29 @@ export {
|
|
|
5
5
|
ConsumerProfileApiModel,
|
|
6
6
|
ConsumerAccountApiModel,
|
|
7
7
|
EnsureConsumerRequest,
|
|
8
|
+
UpdateConsumerProfileRequest,
|
|
8
9
|
ConsumerMeApiModel,
|
|
9
10
|
} from './consumer-wallet.api.model';
|
|
11
|
+
export {
|
|
12
|
+
ConsumerAccountVehicleApiModel,
|
|
13
|
+
ConsumerAccountVehicleListApiModel,
|
|
14
|
+
CreateConsumerAccountVehicleRequest,
|
|
15
|
+
UpdateConsumerAccountVehicleRequest,
|
|
16
|
+
} from './consumer-vehicle.api.model';
|
|
17
|
+
export {
|
|
18
|
+
RegisterPushTokenRequest,
|
|
19
|
+
ConsumerPushTokenApiModel,
|
|
20
|
+
UnregisterPushTokenRequest,
|
|
21
|
+
} from './consumer-push-token.api.model';
|
|
22
|
+
export {
|
|
23
|
+
AdminConsumerListOrderBy,
|
|
24
|
+
AdminConsumerListItemApiModel,
|
|
25
|
+
AdminConsumerListApiModel,
|
|
26
|
+
AdminConsumerAccountApiModel,
|
|
27
|
+
AdminConsumerDetailApiModel,
|
|
28
|
+
AdminUpdateConsumerRequest,
|
|
29
|
+
BlockConsumerRequest,
|
|
30
|
+
AdjustConsumerWalletRequest,
|
|
31
|
+
AdjustConsumerWalletResponse,
|
|
32
|
+
AdminConsumerWalletTransactionListApiModel,
|
|
33
|
+
} from './admin-consumer.api.model';
|