@chevre/factory 6.0.0-alpha.1 → 6.0.0-alpha.3

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.
Files changed (84) hide show
  1. package/lib/account/transactionType.js +1 -1
  2. package/lib/account.js +2 -2
  3. package/lib/accountType.js +1 -1
  4. package/lib/action/accept/coaOffer.js +1 -1
  5. package/lib/action/authorize/offer/any.d.ts +76 -0
  6. package/lib/action/authorize/offer/any.js +8 -0
  7. package/lib/action/authorize/offer/eventService.d.ts +5 -71
  8. package/lib/action/authorize/offer/eventService.js +2 -4
  9. package/lib/action/authorize/offer/product.d.ts +8 -19
  10. package/lib/action/authorize/offer/product.js +3 -0
  11. package/lib/action/authorize/paymentMethod/any.js +2 -2
  12. package/lib/action/transfer/give/pointAward.js +1 -1
  13. package/lib/action/update/delete.js +1 -1
  14. package/lib/actionStatusType.js +1 -1
  15. package/lib/actionType.js +1 -1
  16. package/lib/aggregation.js +1 -1
  17. package/lib/assetTransactionType.js +1 -1
  18. package/lib/categoryCode.js +1 -1
  19. package/lib/certificationStatusEnumeration.js +1 -1
  20. package/lib/creativeWork/message/email.js +1 -1
  21. package/lib/creativeWork/noteDigitalDocument.js +2 -2
  22. package/lib/creativeWorkType.js +1 -1
  23. package/lib/encodingFormat.js +10 -10
  24. package/lib/error/alreadyInUse.js +1 -3
  25. package/lib/error/argument.js +1 -3
  26. package/lib/error/argumentNull.js +1 -3
  27. package/lib/error/chevre.js +1 -3
  28. package/lib/error/forbidden.js +1 -3
  29. package/lib/error/gatewayTimeout.js +1 -3
  30. package/lib/error/internal.js +1 -3
  31. package/lib/error/notFound.js +1 -3
  32. package/lib/error/notImplemented.js +1 -3
  33. package/lib/error/rateLimitExceeded.js +1 -3
  34. package/lib/error/serviceUnavailable.js +1 -3
  35. package/lib/error/unauthorized.js +1 -3
  36. package/lib/error/unknown.js +1 -3
  37. package/lib/errorCode.js +1 -1
  38. package/lib/event/anyEvent.d.ts +2 -2
  39. package/lib/eventStatusType.js +1 -1
  40. package/lib/eventType.js +1 -1
  41. package/lib/index.d.ts +4 -8
  42. package/lib/index.js +30 -58
  43. package/lib/itemAvailability.js +1 -1
  44. package/lib/merchantReturnPolicy.js +3 -3
  45. package/lib/movieTicketType.js +1 -1
  46. package/lib/offerItemCondition.js +1 -1
  47. package/lib/offerType.js +1 -1
  48. package/lib/order.js +1 -1
  49. package/lib/orderStatus.js +1 -1
  50. package/lib/organizationType.js +1 -1
  51. package/lib/ownershipInfo.d.ts +7 -20
  52. package/lib/paymentStatusType.js +1 -1
  53. package/lib/permit.js +1 -1
  54. package/lib/personType.js +1 -1
  55. package/lib/place/seat.d.ts +1 -3
  56. package/lib/placeType.js +1 -1
  57. package/lib/priceCurrency.js +1 -1
  58. package/lib/priceSpecificationType.js +1 -1
  59. package/lib/product.js +1 -1
  60. package/lib/programMembership.js +1 -1
  61. package/lib/propertyValue.js +1 -1
  62. package/lib/quantitativeValue.js +1 -1
  63. package/lib/recipe.js +2 -2
  64. package/lib/reservationStatusType.js +1 -1
  65. package/lib/reservationType.js +1 -1
  66. package/lib/role/organizationRole.js +1 -1
  67. package/lib/role.js +1 -1
  68. package/lib/service/paymentService.js +1 -1
  69. package/lib/service/webAPI.js +1 -1
  70. package/lib/sortType.js +1 -1
  71. package/lib/taskName.js +1 -1
  72. package/lib/taskStatus.js +1 -1
  73. package/lib/transaction/returnOrder.js +1 -1
  74. package/lib/transactionStatusType.js +1 -1
  75. package/lib/transactionType.js +1 -1
  76. package/lib/tripType.js +1 -1
  77. package/lib/unitCode.js +1 -1
  78. package/package.json +15 -18
  79. package/example/customReturnPolicyRequest.json +0 -125
  80. package/example/customReturnPolicyResponse.json +0 -17
  81. package/example/informPayAction.json +0 -126
  82. package/example/informPersonAction.json +0 -517
  83. package/example/informRefundAction.json +0 -16
  84. package/example/testErrorInstance.js +0 -9
@@ -18,4 +18,4 @@ var AccountTransactionType;
18
18
  * 転送取引
19
19
  */
20
20
  AccountTransactionType["Transfer"] = "Transfer";
21
- })(AccountTransactionType = exports.AccountTransactionType || (exports.AccountTransactionType = {}));
21
+ })(AccountTransactionType || (exports.AccountTransactionType = AccountTransactionType = {}));
package/lib/account.js CHANGED
@@ -22,11 +22,11 @@ var WithdrawTransactionFactory = require("./account/transaction/withdraw");
22
22
  var action;
23
23
  (function (action) {
24
24
  action.moneyTransfer = MoneyTransferActionFactory;
25
- })(action = exports.action || (exports.action = {}));
25
+ })(action || (exports.action = action = {}));
26
26
  var transaction;
27
27
  (function (transaction) {
28
28
  transaction.withdraw = WithdrawTransactionFactory;
29
29
  transaction.deposit = DepositTransactionFactory;
30
30
  transaction.transfer = TransferTransactionFactory;
31
- })(transaction = exports.transaction || (exports.transaction = {}));
31
+ })(transaction || (exports.transaction = transaction = {}));
32
32
  exports.transactionType = transactionType_1.AccountTransactionType;
@@ -16,4 +16,4 @@ var AccountType;
16
16
  AccountType["Savings"] = "Savings";
17
17
  AccountType["Transaction"] = "Transaction";
18
18
  AccountType["Transactional"] = "Transactional";
19
- })(AccountType = exports.AccountType || (exports.AccountType = {}));
19
+ })(AccountType || (exports.AccountType = AccountType = {}));
@@ -14,4 +14,4 @@ var FlgMember;
14
14
  * 会員
15
15
  */
16
16
  FlgMember["Member"] = "1";
17
- })(FlgMember = exports.FlgMember || (exports.FlgMember = {}));
17
+ })(FlgMember || (exports.FlgMember = FlgMember = {}));
@@ -0,0 +1,76 @@
1
+ import * as ActionFactory from '../../../action';
2
+ import { IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
3
+ import { AssetTransactionType } from '../../../assetTransactionType';
4
+ import { OfferType } from '../../../offerType';
5
+ import { PriceCurrency } from '../../../priceCurrency';
6
+ import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
7
+ import { ITicketOffer } from '../../../product';
8
+ import { TransactionType } from '../../../transactionType';
9
+ export type IAgent = ActionFactory.IParticipantAsSeller;
10
+ export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
11
+ export declare enum ObjectType {
12
+ SeatReservation = "SeatReservation",
13
+ AggregateOffer = "AggregateOffer"
14
+ }
15
+ export interface IInstrumentAsCOAReserveTransaction {
16
+ typeOf: AssetTransactionType.COAReserveTransaction;
17
+ identifier?: never;
18
+ /**
19
+ * 仮予約番号
20
+ * ある時期(2023-09-12頃)以前では空文字のケースがあるので注意
21
+ */
22
+ transactionNumber: string;
23
+ }
24
+ export interface IInstrumentAsReserveTransaction {
25
+ typeOf: AssetTransactionType.Reserve;
26
+ identifier?: never;
27
+ /**
28
+ * 予約取引番号
29
+ */
30
+ transactionNumber: string;
31
+ }
32
+ export interface IInstrumentAsRegisterService {
33
+ typeOf: AssetTransactionType.RegisterService;
34
+ transactionNumber: string;
35
+ }
36
+ export interface IPurpose {
37
+ typeOf: TransactionType.PlaceOrder;
38
+ id: string;
39
+ }
40
+ export type IError = any;
41
+ export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
42
+ typeOf: OfferType.Offer;
43
+ id: string;
44
+ includesObject: {
45
+ amountOfThisGood: number;
46
+ };
47
+ /**
48
+ * 取引確定時の検証に必要な情報のみ保管する
49
+ */
50
+ priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
51
+ }
52
+ export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
53
+ /**
54
+ * オファー承認結果としての集計オファー
55
+ */
56
+ export interface IResultAsAggregateOffer {
57
+ typeOf: OfferType.AggregateOffer;
58
+ /**
59
+ * オファーIDごとの集計
60
+ */
61
+ offers?: IAcceptedOfferInResult[];
62
+ itemOffered?: {
63
+ serviceOutput: {
64
+ /**
65
+ * programMembershipUsed required(2024-08-15~)
66
+ */
67
+ programMembershipUsed: IAggregateProgramMembershipUsed;
68
+ };
69
+ };
70
+ /**
71
+ * 決済金額
72
+ * オファー未指定の場合、金額非確定なので、この属性は存在しない
73
+ */
74
+ price?: number;
75
+ priceCurrency: PriceCurrency;
76
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectType = void 0;
4
+ var ObjectType;
5
+ (function (ObjectType) {
6
+ ObjectType["SeatReservation"] = "SeatReservation";
7
+ ObjectType["AggregateOffer"] = "AggregateOffer";
8
+ })(ObjectType || (exports.ObjectType = ObjectType = {}));
@@ -1,76 +1,15 @@
1
1
  import type * as COA from '@motionpicture/coa-service';
2
2
  import * as ActionFactory from '../../../action';
3
3
  import { ActionType } from '../../../actionType';
4
- import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail, IPermitIssuedThroughFaceToFace, IPermitIssuedThroughMembershipService } from '../../../assetTransaction/reserve';
4
+ import { IAcceptedTicketOfferWithoutDetail, IObjectWithoutDetail } from '../../../assetTransaction/reserve';
5
5
  import { AssetTransactionType } from '../../../assetTransactionType';
6
6
  import { IEvent } from '../../../event/screeningEvent';
7
- import { OfferType } from '../../../offerType';
8
7
  import * as OrderFactory from '../../../order';
9
- import { PriceCurrency } from '../../../priceCurrency';
10
- import { IPriceSpecification as IUnitPriceSpecification } from '../../../priceSpecification/unitPriceSpecification';
11
- import { ITicketOffer } from '../../../product';
12
- import { TransactionType } from '../../../transactionType';
13
8
  import * as AuthorizeActionFactory from '../../authorize';
14
- export type IAgent = ActionFactory.IParticipantAsSeller;
15
- export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
16
- export declare enum ObjectType {
17
- SeatReservation = "SeatReservation"
18
- }
19
- export interface IInstrumentAsCOAReserveTransaction {
20
- typeOf: AssetTransactionType.COAReserveTransaction;
21
- identifier?: never;
22
- /**
23
- * 仮予約番号
24
- * ある時期(2023-09-12頃)以前では空文字のケースがあるので注意
25
- */
26
- transactionNumber: string;
27
- }
28
- export interface IInstrumentAsReserveTransaction {
29
- typeOf: AssetTransactionType.Reserve;
30
- identifier?: never;
31
- /**
32
- * 予約取引番号
33
- */
34
- transactionNumber: string;
35
- }
9
+ import { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IError, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
10
+ export { IAcceptedOfferInResult, IAgent, IAggregateProgramMembershipUsed, IRecipient, IInstrumentAsCOAReserveTransaction, IInstrumentAsReserveTransaction, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
36
11
  export type IInstrumentAsAssetTransaction = IInstrumentAsCOAReserveTransaction | IInstrumentAsReserveTransaction;
37
- export interface IAcceptedOfferInResult extends Pick<ITicketOffer, 'acceptedPaymentMethod' | 'id' | 'typeOf'> {
38
- typeOf: OfferType.Offer;
39
- id: string;
40
- includesObject: {
41
- amountOfThisGood: number;
42
- };
43
- /**
44
- * 取引確定時の検証に必要な情報のみ保管する
45
- */
46
- priceSpecification?: Pick<IUnitPriceSpecification, 'eligibleQuantity' | 'eligibleTransactionVolume'>;
47
- }
48
- export type IAggregateProgramMembershipUsed = (IPermitIssuedThroughFaceToFace | IPermitIssuedThroughMembershipService)[];
49
- /**
50
- * 興行オファー承認結果としての集計オファー
51
- */
52
- export interface IResultAsAggregateOffer {
53
- typeOf: OfferType.AggregateOffer;
54
- /**
55
- * オファーIDごとの集計
56
- */
57
- offers?: IAcceptedOfferInResult[];
58
- itemOffered?: {
59
- serviceOutput: {
60
- /**
61
- * programMembershipUsed required(2024-08-15~)
62
- */
63
- programMembershipUsed: IAggregateProgramMembershipUsed;
64
- };
65
- };
66
- }
67
12
  export interface IResult extends IResultAsAggregateOffer {
68
- /**
69
- * 決済金額
70
- * オファー未指定の場合、金額非確定なので、この属性は存在しない
71
- */
72
- price?: number;
73
- priceCurrency: PriceCurrency;
74
13
  /**
75
14
  * オファーに対して必要な通貨金額
76
15
  * currencyを通貨区分として扱う
@@ -88,7 +27,7 @@ export type IEventInObject = Pick<IEvent, 'id' | 'typeOf'>;
88
27
  * 興行オファー承認アクション対象
89
28
  */
90
29
  export interface IObject {
91
- typeOf: ObjectType;
30
+ typeOf: ObjectType.SeatReservation;
92
31
  event?: IEventInObject;
93
32
  itemOffered?: never;
94
33
  /**
@@ -101,18 +40,13 @@ export interface IObject {
101
40
  */
102
41
  pendingTransaction?: ICOAPendingTransaction;
103
42
  }
104
- export interface IPurpose {
105
- typeOf: TransactionType.PlaceOrder;
106
- id: string;
107
- }
108
- export type IError = any;
109
43
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
110
44
  typeOf: ActionType.AuthorizeAction;
111
45
  agent: IAgent;
46
+ instrument: IInstrumentAsAssetTransaction;
112
47
  recipient: IRecipient;
113
48
  object: IObject;
114
49
  purpose: IPurpose;
115
- instrument: IInstrumentAsAssetTransaction;
116
50
  }
117
51
  /**
118
52
  * 興行オファー承認アクション
@@ -1,7 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ObjectType = void 0;
4
- var ObjectType;
5
- (function (ObjectType) {
6
- ObjectType["SeatReservation"] = "SeatReservation";
7
- })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
4
+ var any_1 = require("./any");
5
+ Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
@@ -1,18 +1,14 @@
1
1
  import * as ActionFactory from '../../../action';
2
2
  import { ActionType } from '../../../actionType';
3
3
  import * as RegisterServiceTransactionFactory from '../../../assetTransaction/registerService';
4
- import { AssetTransactionType } from '../../../assetTransactionType';
5
4
  import { IOffer } from '../../../offer';
6
- import { OfferType } from '../../../offerType';
7
5
  import { IIssuedThroughAsProduct, IPermit } from '../../../permit';
8
- import { PriceCurrency } from '../../../priceCurrency';
9
6
  import { IMembershipProduct, IPaymentCardProduct, IServiceOutput as IProductServiceOutput, ITicketPriceSpecification } from '../../../product';
10
7
  import { ISeller } from '../../../seller';
11
- import { TransactionType } from '../../../transactionType';
12
8
  import * as AuthorizeActionFactory from '../../authorize';
13
9
  import { IPointAward } from '../../transfer/moneyTransfer';
14
- export type IAgent = ActionFactory.IParticipantAsSeller;
15
- export type IRecipient = ActionFactory.IParticipantAsWebApplication | ActionFactory.IParticipantAsPerson;
10
+ import { IAgent, IError, IInstrumentAsRegisterService, IPurpose, IRecipient, IResultAsAggregateOffer, ObjectType } from './any';
11
+ export { IAgent, IRecipient, IInstrumentAsRegisterService, IError, IPurpose, ObjectType, IResultAsAggregateOffer };
16
12
  export type IPermitIssuedByProduct = Omit<IPermit, 'issuedThrough'> & {
17
13
  issuedThrough?: IIssuedThroughAsProduct;
18
14
  };
@@ -41,7 +37,7 @@ export interface IAcceptedOffer extends Pick<IOffer, 'typeOf' | 'id' | 'identifi
41
37
  * 承認アクションオブジェクト(最適化されたAcceptedOffer)
42
38
  */
43
39
  export interface IObjectAsAcceptedOffer {
44
- typeOf: OfferType.AggregateOffer;
40
+ typeOf: ObjectType.AggregateOffer;
45
41
  /**
46
42
  * オファー対象アイテム
47
43
  */
@@ -52,25 +48,18 @@ export interface IObjectAsAcceptedOffer {
52
48
  }
53
49
  export type IObjectWithoutDetail = IAcceptedOfferWithoutDetail[];
54
50
  export type IObject = IObjectAsAcceptedOffer;
55
- export interface IResult {
56
- typeOf: OfferType.AggregateOffer;
51
+ export interface IResult extends IResultAsAggregateOffer {
52
+ /**
53
+ * オファー未指定は現時点でありえないので金額は必ず確定
54
+ */
57
55
  price: number;
58
- priceCurrency: PriceCurrency;
59
56
  requestBody?: never;
60
57
  responseBody?: never;
61
58
  offers?: never;
62
59
  itemOffered?: never;
63
60
  amount?: never;
64
61
  }
65
- export interface IPurpose {
66
- typeOf: TransactionType.PlaceOrder;
67
- id: string;
68
- }
69
- export type IError = any;
70
- export interface IInstrument {
71
- typeOf: AssetTransactionType.RegisterService;
72
- transactionNumber: string;
73
- }
62
+ export type IInstrument = IInstrumentAsRegisterService;
74
63
  export interface IAttributes extends AuthorizeActionFactory.IAttributes<IObject, IResult> {
75
64
  typeOf: ActionType.AuthorizeAction;
76
65
  agent: IAgent;
@@ -1,2 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ObjectType = void 0;
4
+ var any_1 = require("./any");
5
+ Object.defineProperty(exports, "ObjectType", { enumerable: true, get: function () { return any_1.ObjectType; } });
@@ -4,9 +4,9 @@ exports.ServiceIdentifier = exports.ResultType = void 0;
4
4
  var ResultType;
5
5
  (function (ResultType) {
6
6
  ResultType["Payment"] = "Payment";
7
- })(ResultType = exports.ResultType || (exports.ResultType = {}));
7
+ })(ResultType || (exports.ResultType = ResultType = {}));
8
8
  var ServiceIdentifier;
9
9
  (function (ServiceIdentifier) {
10
10
  // 現時点で決済取引はChevreのみ対応
11
11
  ServiceIdentifier["Chevre"] = "Chevre";
12
- })(ServiceIdentifier = exports.ServiceIdentifier || (exports.ServiceIdentifier = {}));
12
+ })(ServiceIdentifier || (exports.ServiceIdentifier = ServiceIdentifier = {}));
@@ -4,4 +4,4 @@ exports.ObjectType = void 0;
4
4
  var ObjectType;
5
5
  (function (ObjectType) {
6
6
  ObjectType["PointAward"] = "PointAward";
7
- })(ObjectType = exports.ObjectType || (exports.ObjectType = {}));
7
+ })(ObjectType || (exports.ObjectType = ObjectType = {}));
@@ -8,4 +8,4 @@ var ObjectAsTransactionSpecifyingMethod;
8
8
  (function (ObjectAsTransactionSpecifyingMethod) {
9
9
  ObjectAsTransactionSpecifyingMethod["Id"] = "Id";
10
10
  ObjectAsTransactionSpecifyingMethod["AgentId"] = "AgentId";
11
- })(ObjectAsTransactionSpecifyingMethod = exports.ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = {}));
11
+ })(ObjectAsTransactionSpecifyingMethod || (exports.ObjectAsTransactionSpecifyingMethod = ObjectAsTransactionSpecifyingMethod = {}));
@@ -11,4 +11,4 @@ var ActionStatusType;
11
11
  ActionStatusType["FailedActionStatus"] = "FailedActionStatus";
12
12
  ActionStatusType["PotentialActionStatus"] = "PotentialActionStatus";
13
13
  ActionStatusType["CanceledActionStatus"] = "CanceledActionStatus";
14
- })(ActionStatusType = exports.ActionStatusType || (exports.ActionStatusType = {}));
14
+ })(ActionStatusType || (exports.ActionStatusType = ActionStatusType = {}));
package/lib/actionType.js CHANGED
@@ -28,4 +28,4 @@ var ActionType;
28
28
  ActionType["UnRegisterAction"] = "UnRegisterAction";
29
29
  ActionType["UpdateAction"] = "UpdateAction";
30
30
  ActionType["UseAction"] = "UseAction";
31
- })(ActionType = exports.ActionType || (exports.ActionType = {}));
31
+ })(ActionType || (exports.ActionType = ActionType = {}));
@@ -18,4 +18,4 @@ var AggregationType;
18
18
  AggregationType["AggregateReserveAction"] = "AggregateReserveAction";
19
19
  AggregationType["AggregateTask"] = "AggregateTask";
20
20
  AggregationType["AggregateUseAction"] = "AggregateUseAction";
21
- })(AggregationType = exports.AggregationType || (exports.AggregationType = {}));
21
+ })(AggregationType || (exports.AggregationType = AggregationType = {}));
@@ -35,4 +35,4 @@ var AssetTransactionType;
35
35
  * 資産取引docは存在しない
36
36
  */
37
37
  AssetTransactionType["COAReserveTransaction"] = "COAReserveTransaction";
38
- })(AssetTransactionType = exports.AssetTransactionType || (exports.AssetTransactionType = {}));
38
+ })(AssetTransactionType || (exports.AssetTransactionType = AssetTransactionType = {}));
@@ -47,4 +47,4 @@ var CategorySetIdentifier;
47
47
  * 上映方式タイプ
48
48
  */
49
49
  CategorySetIdentifier["VideoFormatType"] = "VideoFormatType";
50
- })(CategorySetIdentifier = exports.CategorySetIdentifier || (exports.CategorySetIdentifier = {}));
50
+ })(CategorySetIdentifier || (exports.CategorySetIdentifier = CategorySetIdentifier = {}));
@@ -5,4 +5,4 @@ var CertificationStatusEnumeration;
5
5
  (function (CertificationStatusEnumeration) {
6
6
  CertificationStatusEnumeration["CertificationActive"] = "CertificationActive";
7
7
  CertificationStatusEnumeration["CertificationInactive"] = "CertificationInactive";
8
- })(CertificationStatusEnumeration = exports.CertificationStatusEnumeration || (exports.CertificationStatusEnumeration = {}));
8
+ })(CertificationStatusEnumeration || (exports.CertificationStatusEnumeration = CertificationStatusEnumeration = {}));
@@ -7,4 +7,4 @@ var AboutIdentifier;
7
7
  AboutIdentifier["OnOrderRefunded"] = "OnOrderRefunded";
8
8
  AboutIdentifier["OnOrderReturned"] = "OnOrderReturned";
9
9
  AboutIdentifier["OnEventStatusChanged"] = "OnEventStatusChanged";
10
- })(AboutIdentifier = exports.AboutIdentifier || (exports.AboutIdentifier = {}));
10
+ })(AboutIdentifier || (exports.AboutIdentifier = AboutIdentifier = {}));
@@ -5,8 +5,8 @@ var DigitalDocumentPermissionType;
5
5
  (function (DigitalDocumentPermissionType) {
6
6
  DigitalDocumentPermissionType["ReadPermission"] = "ReadPermission";
7
7
  DigitalDocumentPermissionType["WritePermission"] = "WritePermission";
8
- })(DigitalDocumentPermissionType = exports.DigitalDocumentPermissionType || (exports.DigitalDocumentPermissionType = {}));
8
+ })(DigitalDocumentPermissionType || (exports.DigitalDocumentPermissionType = DigitalDocumentPermissionType = {}));
9
9
  var PermissionGranteeAudienceType;
10
10
  (function (PermissionGranteeAudienceType) {
11
11
  PermissionGranteeAudienceType["Public"] = "public";
12
- })(PermissionGranteeAudienceType = exports.PermissionGranteeAudienceType || (exports.PermissionGranteeAudienceType = {}));
12
+ })(PermissionGranteeAudienceType || (exports.PermissionGranteeAudienceType = PermissionGranteeAudienceType = {}));
@@ -14,4 +14,4 @@ var CreativeWorkType;
14
14
  CreativeWorkType["SoftwareApplication"] = "SoftwareApplication";
15
15
  CreativeWorkType["WebApplication"] = "WebApplication";
16
16
  CreativeWorkType["WebSite"] = "WebSite";
17
- })(CreativeWorkType = exports.CreativeWorkType || (exports.CreativeWorkType = {}));
17
+ })(CreativeWorkType || (exports.CreativeWorkType = CreativeWorkType = {}));
@@ -10,32 +10,32 @@ var Application;
10
10
  (function (Application) {
11
11
  Application["pdf"] = "application/pdf";
12
12
  Application["json"] = "application/json";
13
- })(Application = exports.Application || (exports.Application = {}));
13
+ })(Application || (exports.Application = Application = {}));
14
14
  var Audio;
15
15
  (function (Audio) {
16
- })(Audio = exports.Audio || (exports.Audio = {}));
16
+ })(Audio || (exports.Audio = Audio = {}));
17
17
  var Font;
18
18
  (function (Font) {
19
- })(Font = exports.Font || (exports.Font = {}));
19
+ })(Font || (exports.Font = Font = {}));
20
20
  var Example;
21
21
  (function (Example) {
22
- })(Example = exports.Example || (exports.Example = {}));
22
+ })(Example || (exports.Example = Example = {}));
23
23
  var Image;
24
24
  (function (Image) {
25
- })(Image = exports.Image || (exports.Image = {}));
25
+ })(Image || (exports.Image = Image = {}));
26
26
  var Message;
27
27
  (function (Message) {
28
- })(Message = exports.Message || (exports.Message = {}));
28
+ })(Message || (exports.Message = Message = {}));
29
29
  var Model;
30
30
  (function (Model) {
31
- })(Model = exports.Model || (exports.Model = {}));
31
+ })(Model || (exports.Model = Model = {}));
32
32
  var Multipart;
33
33
  (function (Multipart) {
34
- })(Multipart = exports.Multipart || (exports.Multipart = {}));
34
+ })(Multipart || (exports.Multipart = Multipart = {}));
35
35
  var Text;
36
36
  (function (Text) {
37
37
  Text["csv"] = "text/csv";
38
- })(Text = exports.Text || (exports.Text = {}));
38
+ })(Text || (exports.Text = Text = {}));
39
39
  var Video;
40
40
  (function (Video) {
41
- })(Video = exports.Video || (exports.Video = {}));
41
+ })(Video || (exports.Video = Video = {}));
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.AlreadyInUseError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var AlreadyInUseError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = "The specified '".concat(entityName, "' value is already in use for: ").concat(fieldNames.join(', '), ".");
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.AlreadyInUse, actualMessage) || this;
37
35
  _this.entityName = entityName;
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.ArgumentError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var ArgumentError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = "Invalid or missing argument supplied: ".concat(argumentName, ".");
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.Argument, actualMessage) || this;
37
35
  _this.argumentName = argumentName;
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.ArgumentNullError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var ArgumentNullError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = "Missing argument: ".concat(argumentName, ".");
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.ArgumentNull, actualMessage) || this;
37
35
  _this.argumentName = argumentName;
@@ -16,14 +16,12 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.ChevreError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  /**
22
21
  * ChevreError
23
22
  */
24
23
  var ChevreError = /** @class */ (function (_super) {
25
24
  __extends(ChevreError, _super);
26
- // tslint:disable-next-line:no-single-line-block-comment
27
25
  /* istanbul ignore next */
28
26
  function ChevreError(code, message) {
29
27
  var _this = _super.call(this, message) || this;
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.ForbiddenError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var ForbiddenError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = 'Forbidden.';
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.Forbidden, actualMessage) || this;
37
35
  setPrototypeOf(_this, ForbiddenError.prototype);
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.GatewayTimeoutError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var GatewayTimeoutError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = 'Gateway Timeout';
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.GatewayTimeout, actualMessage) || this;
37
35
  setPrototypeOf(_this, GatewayTimeoutError.prototype);
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.InternalError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var InternalError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = 'Internal server error.';
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.Internal, actualMessage) || this;
37
35
  setPrototypeOf(_this, InternalError.prototype);
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.NotFoundError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var NotFoundError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = "Not Found: ".concat(entityName, ".");
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.NotFound, actualMessage) || this;
37
35
  _this.entityName = entityName;
@@ -16,8 +16,7 @@ var __extends = (this && this.__extends) || (function () {
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
18
  exports.NotImplementedError = void 0;
19
- // tslint:disable-next-line:no-require-imports
20
- var setPrototypeOf = require("setprototypeof");
19
+ var setPrototypeOf = require("setprototypeof"); // eslint-disable-line @typescript-eslint/no-require-imports
21
20
  var errorCode_1 = require("../errorCode");
22
21
  var chevre_1 = require("./chevre");
23
22
  /**
@@ -31,7 +30,6 @@ var NotImplementedError = /** @class */ (function (_super) {
31
30
  if (message === undefined || message.length === 0) {
32
31
  actualMessage = 'Method is not yet implemented.';
33
32
  }
34
- // tslint:disable-next-line:no-single-line-block-comment
35
33
  /* istanbul ignore next */
36
34
  _this = _super.call(this, errorCode_1.ErrorCode.NotImplemented, actualMessage) || this;
37
35
  setPrototypeOf(_this, NotImplementedError.prototype);