@lokiengineering/loki-common-node 1.4.3 → 1.5.1
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 +58 -17
- package/dist/index.js +64 -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,58 @@ 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
|
+
PENDING = "pending",// starting state (was awaiting_payment)
|
|
313
|
+
COMPLETED = "completed",// normal end state (no disputes)
|
|
314
|
+
CANCELLED = "cancelled"
|
|
315
|
+
}
|
|
316
|
+
declare enum AppealStatus {
|
|
317
|
+
PENDING = "appeal_pending",
|
|
318
|
+
REJECTED = "appeal_rejected",
|
|
319
|
+
ACCEPTED = "appeal_accepted"
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
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,69 @@ 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
|
+
OrderStatus2["PENDING"] = "pending";
|
|
358
|
+
OrderStatus2["COMPLETED"] = "completed";
|
|
359
|
+
OrderStatus2["CANCELLED"] = "cancelled";
|
|
360
|
+
return OrderStatus2;
|
|
361
|
+
})(OrderStatus || {});
|
|
362
|
+
var AppealStatus = /* @__PURE__ */ ((AppealStatus2) => {
|
|
363
|
+
AppealStatus2["PENDING"] = "appeal_pending";
|
|
364
|
+
AppealStatus2["REJECTED"] = "appeal_rejected";
|
|
365
|
+
AppealStatus2["ACCEPTED"] = "appeal_accepted";
|
|
366
|
+
return AppealStatus2;
|
|
367
|
+
})(AppealStatus || {});
|
|
323
368
|
export {
|
|
324
369
|
ActorType,
|
|
325
370
|
AdminRole,
|
|
371
|
+
AppealStatus,
|
|
326
372
|
ArticleType,
|
|
327
373
|
AssetType,
|
|
328
374
|
AssetVisibility,
|
|
@@ -333,6 +379,7 @@ export {
|
|
|
333
379
|
DeliveryStatus,
|
|
334
380
|
EmailTemplateType,
|
|
335
381
|
ErrorEntity,
|
|
382
|
+
FulfillmentStatus,
|
|
336
383
|
GameCopyStatus,
|
|
337
384
|
GamePlayMode,
|
|
338
385
|
GameTier,
|
|
@@ -340,6 +387,7 @@ export {
|
|
|
340
387
|
Genre,
|
|
341
388
|
HouseListPlatform,
|
|
342
389
|
IncidentResolution,
|
|
390
|
+
ItemPaymentStatus,
|
|
343
391
|
MaturityRating,
|
|
344
392
|
MembershipTier,
|
|
345
393
|
OrderChargeStatus,
|