@lokiengineering/loki-common-node 1.5.0 → 1.5.2

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
@@ -77,10 +77,6 @@ declare enum GamePlayMode {
77
77
  MULTIPLAYER = "multiplayer",
78
78
  CO_OP = "co_op"
79
79
  }
80
- declare enum OrderType {
81
- NEW = "new",
82
- EXTEND = "extend"
83
- }
84
80
  declare enum VerificationTokenType {
85
81
  EMAIL_VERIFICATION = "email_verification",
86
82
  PASSWORD_RESET = "password_reset"
@@ -308,12 +304,20 @@ declare enum OrderStatus {
308
304
  ACTIVE = "active",
309
305
  OVERDUE = "overdue",
310
306
  DISPUTED = "disputed",
311
- CLOSED = "closed"
307
+ CLOSED = "closed",
308
+ PENDING = "pending",// starting state (was awaiting_payment)
309
+ COMPLETED = "completed",// normal end state (no disputes)
310
+ CANCELLED = "cancelled"
312
311
  }
313
312
  declare enum AppealStatus {
314
313
  PENDING = "appeal_pending",
315
314
  REJECTED = "appeal_rejected",
316
315
  ACCEPTED = "appeal_accepted"
317
316
  }
317
+ declare enum OrderType {
318
+ NEW = "new",
319
+ EXTEND = "extend",
320
+ REPLACEMENT = "replacement"
321
+ }
318
322
 
319
323
  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
@@ -91,11 +91,6 @@ var GamePlayMode = /* @__PURE__ */ ((GamePlayMode2) => {
91
91
  GamePlayMode2["CO_OP"] = "co_op";
92
92
  return GamePlayMode2;
93
93
  })(GamePlayMode || {});
94
- var OrderType = /* @__PURE__ */ ((OrderType2) => {
95
- OrderType2["NEW"] = "new";
96
- OrderType2["EXTEND"] = "extend";
97
- return OrderType2;
98
- })(OrderType || {});
99
94
  var VerificationTokenType = /* @__PURE__ */ ((VerificationTokenType2) => {
100
95
  VerificationTokenType2["EMAIL_VERIFICATION"] = "email_verification";
101
96
  VerificationTokenType2["PASSWORD_RESET"] = "password_reset";
@@ -354,6 +349,9 @@ var OrderStatus = /* @__PURE__ */ ((OrderStatus2) => {
354
349
  OrderStatus2["OVERDUE"] = "overdue";
355
350
  OrderStatus2["DISPUTED"] = "disputed";
356
351
  OrderStatus2["CLOSED"] = "closed";
352
+ OrderStatus2["PENDING"] = "pending";
353
+ OrderStatus2["COMPLETED"] = "completed";
354
+ OrderStatus2["CANCELLED"] = "cancelled";
357
355
  return OrderStatus2;
358
356
  })(OrderStatus || {});
359
357
  var AppealStatus = /* @__PURE__ */ ((AppealStatus2) => {
@@ -362,6 +360,12 @@ var AppealStatus = /* @__PURE__ */ ((AppealStatus2) => {
362
360
  AppealStatus2["ACCEPTED"] = "appeal_accepted";
363
361
  return AppealStatus2;
364
362
  })(AppealStatus || {});
363
+ var OrderType = /* @__PURE__ */ ((OrderType2) => {
364
+ OrderType2["NEW"] = "new";
365
+ OrderType2["EXTEND"] = "extend";
366
+ OrderType2["REPLACEMENT"] = "replacement";
367
+ return OrderType2;
368
+ })(OrderType || {});
365
369
  export {
366
370
  ActorType,
367
371
  AdminRole,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lokiengineering/loki-common-node",
3
- "version": "1.5.0",
3
+ "version": "1.5.2",
4
4
  "description": "Shared TypeScript enums and types for Loki services",
5
5
  "license": "MIT",
6
6
  "repository": {