@lokiengineering/loki-common-node 1.4.3 → 1.5.0
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/index.d.ts +55 -17
- package/dist/index.js +61 -16
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -90,21 +90,6 @@ declare enum EmailTemplateType {
|
|
|
90
90
|
PASSWORD_RESET = "password_reset",
|
|
91
91
|
PASSWORD_CONFIRMATION = "password_confirmation"
|
|
92
92
|
}
|
|
93
|
-
declare enum OrderStatus {
|
|
94
|
-
AWAITING_PAYMENT = "awaiting_payment",
|
|
95
|
-
ORDERED = "ordered",
|
|
96
|
-
OUTBOUND = "outbound",
|
|
97
|
-
DELIVERED = "delivered",
|
|
98
|
-
INBOUND = "inbound",
|
|
99
|
-
QC_CHECKING = "qc_checking",
|
|
100
|
-
QC_PASSED = "qc_passed",
|
|
101
|
-
CANCELLED = "cancelled",
|
|
102
|
-
LOST = "lost",
|
|
103
|
-
DAMAGE_DETECTED = "damage_detected",
|
|
104
|
-
LOST_OUTBOUND = "lost_outbound",
|
|
105
|
-
LOST_INBOUND = "lost_inbound",
|
|
106
|
-
COMPLETED = "completed"
|
|
107
|
-
}
|
|
108
93
|
declare enum OrderItemStatus {
|
|
109
94
|
ACTIVE = "active",//
|
|
110
95
|
EXTENDED = "extended",// item rental has been extended
|
|
@@ -220,7 +205,9 @@ declare enum ErrorEntity {
|
|
|
220
205
|
Wallet = "wallet",
|
|
221
206
|
WalletTransaction = "wallet_transaction",
|
|
222
207
|
UpcomingRelease = "upcoming_release",
|
|
223
|
-
PhoneVerification = "phone_verification"
|
|
208
|
+
PhoneVerification = "phone_verification",
|
|
209
|
+
OrderItem = "order_item",
|
|
210
|
+
ItemProof = "item_proof"
|
|
224
211
|
}
|
|
225
212
|
declare enum ServerErrorEnum {
|
|
226
213
|
CACHE_LOCK_FAILURE = "CACHE_LOCK_FAILURE",
|
|
@@ -278,4 +265,55 @@ declare enum PhoneVerificationType {
|
|
|
278
265
|
VERIFY = "VERIFY"
|
|
279
266
|
}
|
|
280
267
|
|
|
281
|
-
|
|
268
|
+
declare enum FulfillmentStatus {
|
|
269
|
+
PENDING = "pending",
|
|
270
|
+
CANCELLED = "cancelled",
|
|
271
|
+
OUTBOUND = "outbound",
|
|
272
|
+
DELIVERED = "delivered",
|
|
273
|
+
DOA = "doa",
|
|
274
|
+
DOA_PROOF_VALIDATING = "doa_proof_validating",
|
|
275
|
+
DOA_PROOF_VALIDATED = "doa_proof_validated",
|
|
276
|
+
DOA_IN_REVIEW = "doa_in_review",
|
|
277
|
+
DOA_REJECTED = "doa_rejected",
|
|
278
|
+
DOA_VERIFIED = "doa_verified",
|
|
279
|
+
REPLACED = "replaced",
|
|
280
|
+
DOA_RESOLVED = "doa_resolved",
|
|
281
|
+
INBOUND_SUBMITTED = "inbound_submitted",
|
|
282
|
+
INBOUND_VERIFIED = "inbound_verified",
|
|
283
|
+
QC_CHECKING = "qc_checking",
|
|
284
|
+
QC_PASSED = "qc_passed",
|
|
285
|
+
QC_FAILED = "qc_failed",
|
|
286
|
+
QC_APPEAL_REVIEW = "qc_appeal_review",
|
|
287
|
+
QC_APPEAL_REJECTED = "qc_appeal_rejected",
|
|
288
|
+
QC_APPEAL_ACCEPTED = "qc_appeal_accepted",
|
|
289
|
+
COMPLETED = "completed",
|
|
290
|
+
LOST_USER = "lost_user",
|
|
291
|
+
LOST_SHIPPING = "lost_shipping",
|
|
292
|
+
LOST_SHIPPING_REVIEW = "lost_shipping_review"
|
|
293
|
+
}
|
|
294
|
+
declare enum ItemPaymentStatus {
|
|
295
|
+
UNPAID = "unpaid",
|
|
296
|
+
PAID = "paid",
|
|
297
|
+
HELD = "held",
|
|
298
|
+
REFUNDING = "refunding",
|
|
299
|
+
REFUNDED = "refunded",
|
|
300
|
+
COMPLETED = "completed",
|
|
301
|
+
FORFEITED = "forfeited",
|
|
302
|
+
ZERO_REFUND = "zero_refund"
|
|
303
|
+
}
|
|
304
|
+
declare enum OrderStatus {
|
|
305
|
+
IN_REVIEW = "in_review",
|
|
306
|
+
CONFIRMED = "confirmed",
|
|
307
|
+
SHIPPED = "shipped",
|
|
308
|
+
ACTIVE = "active",
|
|
309
|
+
OVERDUE = "overdue",
|
|
310
|
+
DISPUTED = "disputed",
|
|
311
|
+
CLOSED = "closed"
|
|
312
|
+
}
|
|
313
|
+
declare enum AppealStatus {
|
|
314
|
+
PENDING = "appeal_pending",
|
|
315
|
+
REJECTED = "appeal_rejected",
|
|
316
|
+
ACCEPTED = "appeal_accepted"
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
export { ActorType, AdminRole, AppealStatus, ArticleType, AssetType, AssetVisibility, AuthProvider, BusinessLogicErrorEnum, ContentDescriptor, DeliveryDirection, DeliveryStatus, EmailTemplateType, ErrorEntity, type ErrorEnum, FulfillmentStatus, GameCopyStatus, GamePlayMode, GameTier, GeneralErrorEnum, Genre, HouseListPlatform, IncidentResolution, ItemPaymentStatus, MaturityRating, MembershipTier, OrderChargeStatus, OrderIncidentType, OrderItemStatus, OrderPenaltyType, OrderStatus, OrderType, ParseError, PayoutKnownBank, PeriodKey, PhoneVerificationType, Platform, RefundStatus, ServerErrorEnum, TokenType, VerificationTokenType, VisibilityToTypeMap, WalletTransactionReason, WalletTransactionType };
|
package/dist/index.js
CHANGED
|
@@ -107,22 +107,6 @@ var EmailTemplateType = /* @__PURE__ */ ((EmailTemplateType2) => {
|
|
|
107
107
|
EmailTemplateType2["PASSWORD_CONFIRMATION"] = "password_confirmation";
|
|
108
108
|
return EmailTemplateType2;
|
|
109
109
|
})(EmailTemplateType || {});
|
|
110
|
-
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
111
|
-
OrderStatus2["AWAITING_PAYMENT"] = "awaiting_payment";
|
|
112
|
-
OrderStatus2["ORDERED"] = "ordered";
|
|
113
|
-
OrderStatus2["OUTBOUND"] = "outbound";
|
|
114
|
-
OrderStatus2["DELIVERED"] = "delivered";
|
|
115
|
-
OrderStatus2["INBOUND"] = "inbound";
|
|
116
|
-
OrderStatus2["QC_CHECKING"] = "qc_checking";
|
|
117
|
-
OrderStatus2["QC_PASSED"] = "qc_passed";
|
|
118
|
-
OrderStatus2["CANCELLED"] = "cancelled";
|
|
119
|
-
OrderStatus2["LOST"] = "lost";
|
|
120
|
-
OrderStatus2["DAMAGE_DETECTED"] = "damage_detected";
|
|
121
|
-
OrderStatus2["LOST_OUTBOUND"] = "lost_outbound";
|
|
122
|
-
OrderStatus2["LOST_INBOUND"] = "lost_inbound";
|
|
123
|
-
OrderStatus2["COMPLETED"] = "completed";
|
|
124
|
-
return OrderStatus2;
|
|
125
|
-
})(OrderStatus || {});
|
|
126
110
|
var OrderItemStatus = /* @__PURE__ */ ((OrderItemStatus2) => {
|
|
127
111
|
OrderItemStatus2["ACTIVE"] = "active";
|
|
128
112
|
OrderItemStatus2["EXTENDED"] = "extended";
|
|
@@ -256,6 +240,8 @@ var ErrorEntity = /* @__PURE__ */ ((ErrorEntity2) => {
|
|
|
256
240
|
ErrorEntity2["WalletTransaction"] = "wallet_transaction";
|
|
257
241
|
ErrorEntity2["UpcomingRelease"] = "upcoming_release";
|
|
258
242
|
ErrorEntity2["PhoneVerification"] = "phone_verification";
|
|
243
|
+
ErrorEntity2["OrderItem"] = "order_item";
|
|
244
|
+
ErrorEntity2["ItemProof"] = "item_proof";
|
|
259
245
|
return ErrorEntity2;
|
|
260
246
|
})(ErrorEntity || {});
|
|
261
247
|
var ServerErrorEnum = /* @__PURE__ */ ((ServerErrorEnum2) => {
|
|
@@ -320,9 +306,66 @@ var PhoneVerificationType = /* @__PURE__ */ ((PhoneVerificationType2) => {
|
|
|
320
306
|
PhoneVerificationType2["VERIFY"] = "VERIFY";
|
|
321
307
|
return PhoneVerificationType2;
|
|
322
308
|
})(PhoneVerificationType || {});
|
|
309
|
+
|
|
310
|
+
// src/enums/order.enum.ts
|
|
311
|
+
var FulfillmentStatus = /* @__PURE__ */ ((FulfillmentStatus2) => {
|
|
312
|
+
FulfillmentStatus2["PENDING"] = "pending";
|
|
313
|
+
FulfillmentStatus2["CANCELLED"] = "cancelled";
|
|
314
|
+
FulfillmentStatus2["OUTBOUND"] = "outbound";
|
|
315
|
+
FulfillmentStatus2["DELIVERED"] = "delivered";
|
|
316
|
+
FulfillmentStatus2["DOA"] = "doa";
|
|
317
|
+
FulfillmentStatus2["DOA_PROOF_VALIDATING"] = "doa_proof_validating";
|
|
318
|
+
FulfillmentStatus2["DOA_PROOF_VALIDATED"] = "doa_proof_validated";
|
|
319
|
+
FulfillmentStatus2["DOA_IN_REVIEW"] = "doa_in_review";
|
|
320
|
+
FulfillmentStatus2["DOA_REJECTED"] = "doa_rejected";
|
|
321
|
+
FulfillmentStatus2["DOA_VERIFIED"] = "doa_verified";
|
|
322
|
+
FulfillmentStatus2["REPLACED"] = "replaced";
|
|
323
|
+
FulfillmentStatus2["DOA_RESOLVED"] = "doa_resolved";
|
|
324
|
+
FulfillmentStatus2["INBOUND_SUBMITTED"] = "inbound_submitted";
|
|
325
|
+
FulfillmentStatus2["INBOUND_VERIFIED"] = "inbound_verified";
|
|
326
|
+
FulfillmentStatus2["QC_CHECKING"] = "qc_checking";
|
|
327
|
+
FulfillmentStatus2["QC_PASSED"] = "qc_passed";
|
|
328
|
+
FulfillmentStatus2["QC_FAILED"] = "qc_failed";
|
|
329
|
+
FulfillmentStatus2["QC_APPEAL_REVIEW"] = "qc_appeal_review";
|
|
330
|
+
FulfillmentStatus2["QC_APPEAL_REJECTED"] = "qc_appeal_rejected";
|
|
331
|
+
FulfillmentStatus2["QC_APPEAL_ACCEPTED"] = "qc_appeal_accepted";
|
|
332
|
+
FulfillmentStatus2["COMPLETED"] = "completed";
|
|
333
|
+
FulfillmentStatus2["LOST_USER"] = "lost_user";
|
|
334
|
+
FulfillmentStatus2["LOST_SHIPPING"] = "lost_shipping";
|
|
335
|
+
FulfillmentStatus2["LOST_SHIPPING_REVIEW"] = "lost_shipping_review";
|
|
336
|
+
return FulfillmentStatus2;
|
|
337
|
+
})(FulfillmentStatus || {});
|
|
338
|
+
var ItemPaymentStatus = /* @__PURE__ */ ((ItemPaymentStatus2) => {
|
|
339
|
+
ItemPaymentStatus2["UNPAID"] = "unpaid";
|
|
340
|
+
ItemPaymentStatus2["PAID"] = "paid";
|
|
341
|
+
ItemPaymentStatus2["HELD"] = "held";
|
|
342
|
+
ItemPaymentStatus2["REFUNDING"] = "refunding";
|
|
343
|
+
ItemPaymentStatus2["REFUNDED"] = "refunded";
|
|
344
|
+
ItemPaymentStatus2["COMPLETED"] = "completed";
|
|
345
|
+
ItemPaymentStatus2["FORFEITED"] = "forfeited";
|
|
346
|
+
ItemPaymentStatus2["ZERO_REFUND"] = "zero_refund";
|
|
347
|
+
return ItemPaymentStatus2;
|
|
348
|
+
})(ItemPaymentStatus || {});
|
|
349
|
+
var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
|
|
350
|
+
OrderStatus2["IN_REVIEW"] = "in_review";
|
|
351
|
+
OrderStatus2["CONFIRMED"] = "confirmed";
|
|
352
|
+
OrderStatus2["SHIPPED"] = "shipped";
|
|
353
|
+
OrderStatus2["ACTIVE"] = "active";
|
|
354
|
+
OrderStatus2["OVERDUE"] = "overdue";
|
|
355
|
+
OrderStatus2["DISPUTED"] = "disputed";
|
|
356
|
+
OrderStatus2["CLOSED"] = "closed";
|
|
357
|
+
return OrderStatus2;
|
|
358
|
+
})(OrderStatus || {});
|
|
359
|
+
var AppealStatus = /* @__PURE__ */ ((AppealStatus2) => {
|
|
360
|
+
AppealStatus2["PENDING"] = "appeal_pending";
|
|
361
|
+
AppealStatus2["REJECTED"] = "appeal_rejected";
|
|
362
|
+
AppealStatus2["ACCEPTED"] = "appeal_accepted";
|
|
363
|
+
return AppealStatus2;
|
|
364
|
+
})(AppealStatus || {});
|
|
323
365
|
export {
|
|
324
366
|
ActorType,
|
|
325
367
|
AdminRole,
|
|
368
|
+
AppealStatus,
|
|
326
369
|
ArticleType,
|
|
327
370
|
AssetType,
|
|
328
371
|
AssetVisibility,
|
|
@@ -333,6 +376,7 @@ export {
|
|
|
333
376
|
DeliveryStatus,
|
|
334
377
|
EmailTemplateType,
|
|
335
378
|
ErrorEntity,
|
|
379
|
+
FulfillmentStatus,
|
|
336
380
|
GameCopyStatus,
|
|
337
381
|
GamePlayMode,
|
|
338
382
|
GameTier,
|
|
@@ -340,6 +384,7 @@ export {
|
|
|
340
384
|
Genre,
|
|
341
385
|
HouseListPlatform,
|
|
342
386
|
IncidentResolution,
|
|
387
|
+
ItemPaymentStatus,
|
|
343
388
|
MaturityRating,
|
|
344
389
|
MembershipTier,
|
|
345
390
|
OrderChargeStatus,
|