@lokiengineering/loki-common-node 1.4.2 → 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 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
@@ -219,7 +204,10 @@ declare enum ErrorEntity {
219
204
  OrderDelivery = "order_delivery",
220
205
  Wallet = "wallet",
221
206
  WalletTransaction = "wallet_transaction",
222
- UpcomingRelease = "upcoming_release"
207
+ UpcomingRelease = "upcoming_release",
208
+ PhoneVerification = "phone_verification",
209
+ OrderItem = "order_item",
210
+ ItemProof = "item_proof"
223
211
  }
224
212
  declare enum ServerErrorEnum {
225
213
  CACHE_LOCK_FAILURE = "CACHE_LOCK_FAILURE",
@@ -272,4 +260,60 @@ declare enum PayoutKnownBank {
272
260
  MANDIRI = "mandiri"
273
261
  }
274
262
 
275
- export { ActorType, AdminRole, ArticleType, AssetType, AssetVisibility, AuthProvider, BusinessLogicErrorEnum, ContentDescriptor, DeliveryDirection, DeliveryStatus, EmailTemplateType, ErrorEntity, type ErrorEnum, GameCopyStatus, GamePlayMode, GameTier, GeneralErrorEnum, Genre, HouseListPlatform, IncidentResolution, MaturityRating, MembershipTier, OrderChargeStatus, OrderIncidentType, OrderItemStatus, OrderPenaltyType, OrderStatus, OrderType, ParseError, PayoutKnownBank, PeriodKey, Platform, RefundStatus, ServerErrorEnum, TokenType, VerificationTokenType, VisibilityToTypeMap, WalletTransactionReason, WalletTransactionType };
263
+ declare enum PhoneVerificationType {
264
+ CONFIRM = "CONFIRM",
265
+ VERIFY = "VERIFY"
266
+ }
267
+
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";
@@ -255,6 +239,9 @@ var ErrorEntity = /* @__PURE__ */ ((ErrorEntity2) => {
255
239
  ErrorEntity2["Wallet"] = "wallet";
256
240
  ErrorEntity2["WalletTransaction"] = "wallet_transaction";
257
241
  ErrorEntity2["UpcomingRelease"] = "upcoming_release";
242
+ ErrorEntity2["PhoneVerification"] = "phone_verification";
243
+ ErrorEntity2["OrderItem"] = "order_item";
244
+ ErrorEntity2["ItemProof"] = "item_proof";
258
245
  return ErrorEntity2;
259
246
  })(ErrorEntity || {});
260
247
  var ServerErrorEnum = /* @__PURE__ */ ((ServerErrorEnum2) => {
@@ -312,9 +299,73 @@ var PayoutKnownBank = /* @__PURE__ */ ((PayoutKnownBank2) => {
312
299
  PayoutKnownBank2["MANDIRI"] = "mandiri";
313
300
  return PayoutKnownBank2;
314
301
  })(PayoutKnownBank || {});
302
+
303
+ // src/enums/otp.enum.ts
304
+ var PhoneVerificationType = /* @__PURE__ */ ((PhoneVerificationType2) => {
305
+ PhoneVerificationType2["CONFIRM"] = "CONFIRM";
306
+ PhoneVerificationType2["VERIFY"] = "VERIFY";
307
+ return PhoneVerificationType2;
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 || {});
315
365
  export {
316
366
  ActorType,
317
367
  AdminRole,
368
+ AppealStatus,
318
369
  ArticleType,
319
370
  AssetType,
320
371
  AssetVisibility,
@@ -325,6 +376,7 @@ export {
325
376
  DeliveryStatus,
326
377
  EmailTemplateType,
327
378
  ErrorEntity,
379
+ FulfillmentStatus,
328
380
  GameCopyStatus,
329
381
  GamePlayMode,
330
382
  GameTier,
@@ -332,6 +384,7 @@ export {
332
384
  Genre,
333
385
  HouseListPlatform,
334
386
  IncidentResolution,
387
+ ItemPaymentStatus,
335
388
  MaturityRating,
336
389
  MembershipTier,
337
390
  OrderChargeStatus,
@@ -343,6 +396,7 @@ export {
343
396
  ParseError,
344
397
  PayoutKnownBank,
345
398
  PeriodKey,
399
+ PhoneVerificationType,
346
400
  Platform,
347
401
  RefundStatus,
348
402
  ServerErrorEnum,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokiengineering/loki-common-node",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "Shared TypeScript enums and types for Loki services",
5
5
  "license": "MIT",
6
6
  "repository": {