@chevre/factory 6.2.0-alpha.5 → 6.2.0-alpha.6

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/lib/index.d.ts CHANGED
@@ -81,7 +81,6 @@ import * as MonetaryAmountFactory from './monetaryAmount';
81
81
  import * as MovieTicketTypeFactory from './movieTicketType';
82
82
  import { IMultilingualString } from './multilingualString';
83
83
  import * as OfferFactory from './offer';
84
- import * as AcceptedPaymentMethodOfferFactory from './offer/acceptedPaymentMethod';
85
84
  import * as AggregateOfferFactory from './offer/aggregateOffer';
86
85
  import * as EventOfferFactory from './offer/eventOffer';
87
86
  import * as ProductOfferFactory from './offer/productOffer';
@@ -230,7 +229,6 @@ import { TransactionType } from './transactionType';
230
229
  import { ErrorCode } from './errorCode';
231
230
  export * as errors from './errors';
232
231
  export import errorCode = ErrorCode;
233
- export import acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
234
232
  export import account = AccountFactory;
235
233
  export import actionStatusType = ActionStatusType;
236
234
  export import actionType = ActionType;
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.acceptedPaymentMethodOffer = exports.errorCode = exports.errors = exports.project = exports.cognito = exports.waiter = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = exports.permit = void 0;
3
+ exports.permit = exports.paymentStatusType = exports.paymentMethod = exports.ownershipInfo = exports.organizationType = exports.organization = exports.orderStatus = exports.order = exports.offerType = exports.offerItemCondition = exports.offerCatalog = exports.offer = exports.notification = exports.movieTicketType = exports.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.identityProvider = exports.iam = exports.eventType = exports.eventStatusType = exports.entryPoint = exports.encodingFormat = exports.eventSeries = exports.eventOffer = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.CertificationStatusEnumeration = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.aggregation = exports.advanceBookingRequirement = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.project = exports.cognito = exports.waiter = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.serviceChannel = exports.service = exports.task = exports.sellerReturnPolicy = exports.seller = exports.schedule = exports.role = exports.RESERVED_CODE_VALUES = exports.reservationType = exports.reservationStatusType = exports.reservationPackage = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = exports.productOffer = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.potentialAction = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -81,7 +81,6 @@ var MerchantReturnPolicyFactory = require("./merchantReturnPolicy");
81
81
  var MonetaryAmountFactory = require("./monetaryAmount");
82
82
  var MovieTicketTypeFactory = require("./movieTicketType");
83
83
  var OfferFactory = require("./offer");
84
- var AcceptedPaymentMethodOfferFactory = require("./offer/acceptedPaymentMethod");
85
84
  var AggregateOfferFactory = require("./offer/aggregateOffer");
86
85
  var EventOfferFactory = require("./offer/eventOffer");
87
86
  var ProductOfferFactory = require("./offer/productOffer");
@@ -212,7 +211,6 @@ var errorCode_1 = require("./errorCode");
212
211
  exports.errors = require("./errors");
213
212
  // export import errors = errors;
214
213
  exports.errorCode = errorCode_1.ErrorCode;
215
- exports.acceptedPaymentMethodOffer = AcceptedPaymentMethodOfferFactory;
216
214
  exports.account = AccountFactory;
217
215
  exports.actionStatusType = actionStatusType_1.ActionStatusType;
218
216
  exports.actionType = actionType_1.ActionType;
@@ -1,9 +1,9 @@
1
- import type { factory as GMO } from '@motionpicture/gmo-service';
1
+ import type { GMOFactory } from '@gmopg/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IEntryTranArgs = GMO.credit.IEntryTranArgs;
4
- export type IEntryTranResult = GMO.credit.IEntryTranResult;
5
- export type IExecTranArgs = GMO.credit.IExecTranArgs;
6
- export type IExecTranResult = GMO.credit.IExecTranResult;
3
+ export type IEntryTranArgs = GMOFactory.service.credit.IEntryTranArgs;
4
+ export type IEntryTranResult = GMOFactory.service.credit.IEntryTranResult;
5
+ export type IExecTranArgs = GMOFactory.service.credit.IExecTranArgs;
6
+ export type IExecTranResult = GMOFactory.service.credit.IExecTranResult;
7
7
  export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
8
8
  beforeMedia?: IEntryTranArgs;
9
9
  afterMedia?: IEntryTranResult;
@@ -1,7 +1,7 @@
1
- import type { factory as GMO } from '@motionpicture/gmo-service';
1
+ import type { GMOFactory } from '@gmopg/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type ISecureTran2Args = GMO.credit.ISecureTran2Args;
4
- export type ISecureTran2Result = GMO.credit.ISecureTran2Result;
3
+ export type ISecureTran2Args = GMOFactory.service.credit.ISecureTran2Args;
4
+ export type ISecureTran2Result = GMOFactory.service.credit.ISecureTran2Result;
5
5
  export interface IDirectionSecureTran2 extends RecipeFactory.IHowToDirection {
6
6
  beforeMedia?: ISecureTran2Args;
7
7
  afterMedia?: ISecureTran2Result;
@@ -1,10 +1,10 @@
1
- import type { factory as GMO } from '@motionpicture/gmo-service';
1
+ import type { GMOFactory } from '@gmopg/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IOptionalSiteArgs = GMO.credit.IOptionalSiteArgs;
4
- export type ISearchTradeArgs = GMO.credit.ISearchTradeArgs & IOptionalSiteArgs;
5
- export type ISearchTradeResult = GMO.credit.ISearchTradeResult;
6
- export type IAlterTranArgs = GMO.credit.IAlterTranArgs & IOptionalSiteArgs;
7
- export type IAlterTranResult = GMO.credit.IAlterTranResult;
3
+ export type IOptionalSiteArgs = GMOFactory.service.credit.IOptionalSiteArgs;
4
+ export type ISearchTradeArgs = GMOFactory.service.credit.ISearchTradeArgs & IOptionalSiteArgs;
5
+ export type ISearchTradeResult = GMOFactory.service.credit.ISearchTradeResult;
6
+ export type IAlterTranArgs = GMOFactory.service.credit.IAlterTranArgs & IOptionalSiteArgs;
7
+ export type IAlterTranResult = GMOFactory.service.credit.IAlterTranResult;
8
8
  export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
9
9
  beforeMedia?: ISearchTradeArgs;
10
10
  afterMedia?: ISearchTradeResult;
@@ -1,11 +1,11 @@
1
- import type { factory as GMO } from '@motionpicture/gmo-service';
1
+ import type { GMOFactory } from '@gmopg/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IEntryTranArgs = GMO.credit.IEntryTranArgs;
4
- export type IEntryTranResult = GMO.credit.IEntryTranResult;
5
- export type IExecTranArgs = GMO.credit.IExecTranArgs;
6
- export type IExecTranResult = GMO.credit.IExecTranResult;
7
- export type IExecTran3dsArgs = GMO.credit.IExecTran3dsArgs;
8
- export type IExecTran3dsResult = GMO.credit.IExecTran3dsResult;
3
+ export type IEntryTranArgs = GMOFactory.service.credit.IEntryTranArgs;
4
+ export type IEntryTranResult = GMOFactory.service.credit.IEntryTranResult;
5
+ export type IExecTranArgs = GMOFactory.service.credit.IExecTranArgs;
6
+ export type IExecTranResult = GMOFactory.service.credit.IExecTranResult;
7
+ export type IExecTran3dsArgs = GMOFactory.service.credit.IExecTran3dsArgs;
8
+ export type IExecTran3dsResult = GMOFactory.service.credit.IExecTran3dsResult;
9
9
  export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
10
10
  beforeMedia?: IEntryTranArgs;
11
11
  afterMedia?: IEntryTranResult;
@@ -1,14 +1,14 @@
1
- import type { factory as GMO } from '@motionpicture/gmo-service';
1
+ import type { GMOFactory } from '@gmopg/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface IResultAsError {
4
4
  name: string;
5
5
  message: string;
6
6
  }
7
- export type IOptionalSiteArgs = GMO.credit.IOptionalSiteArgs;
8
- export type ISearchTradeArgs = GMO.credit.ISearchTradeArgs & IOptionalSiteArgs;
9
- export type ISearchTradeResult = GMO.credit.ISearchTradeResult | IResultAsError;
10
- export type IAlterTranArgs = GMO.credit.IAlterTranArgs & IOptionalSiteArgs;
11
- export type IAlterTranResult = GMO.credit.IAlterTranResult | IResultAsError;
7
+ export type IOptionalSiteArgs = GMOFactory.service.credit.IOptionalSiteArgs;
8
+ export type ISearchTradeArgs = GMOFactory.service.credit.ISearchTradeArgs & IOptionalSiteArgs;
9
+ export type ISearchTradeResult = GMOFactory.service.credit.ISearchTradeResult | IResultAsError;
10
+ export type IAlterTranArgs = GMOFactory.service.credit.IAlterTranArgs & IOptionalSiteArgs;
11
+ export type IAlterTranResult = GMOFactory.service.credit.IAlterTranResult | IResultAsError;
12
12
  export interface IDirectionSearchTrade extends RecipeFactory.IHowToDirection {
13
13
  beforeMedia?: ISearchTradeArgs;
14
14
  afterMedia?: ISearchTradeResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.2.0-alpha.5",
3
+ "version": "6.2.0-alpha.6",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -44,7 +44,7 @@
44
44
  "dependencies": {
45
45
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
46
46
  "@coasystems/factory": "1.0.0-alpha.0",
47
- "@motionpicture/gmo-service": "5.3.0",
47
+ "@gmopg/factory": "1.0.0-alpha.0",
48
48
  "@surfrock/factory": "1.0.0-alpha.1",
49
49
  "@waiter/factory": "2.2.0",
50
50
  "setprototypeof": "1.2.0"
@@ -1,111 +0,0 @@
1
- import { EventType } from '../eventType';
2
- import { IOffer } from '../offer';
3
- import { OfferType } from '../offerType';
4
- import { OrganizationType } from '../organizationType';
5
- import { PaymentServiceType } from '../service/paymentService';
6
- import { SortType } from '../sortType';
7
- interface ISeller {
8
- id: string;
9
- typeOf: OrganizationType.Corporation;
10
- }
11
- interface IAcceptedPaymentMethod {
12
- typeOf: PaymentServiceType.CreditCard | PaymentServiceType.MovieTicket;
13
- /**
14
- * 決済サービスID
15
- */
16
- id: string;
17
- }
18
- /**
19
- * 対応決済方法オファー
20
- */
21
- interface IAcceptedPaymentMethodOffer extends Pick<IOffer, 'typeOf' | 'validFrom' | 'validThrough'> {
22
- project: {
23
- id: string;
24
- typeOf: OrganizationType.Project;
25
- };
26
- seller: ISeller;
27
- typeOf: OfferType.Offer;
28
- /**
29
- * いつから承認可能か
30
- */
31
- validFrom: Date;
32
- /**
33
- * いつまで承認可能か
34
- */
35
- validThrough: Date;
36
- id: string;
37
- /**
38
- * オファーコード
39
- * 提供リソースID内でユニーク必須
40
- */
41
- identifier: string;
42
- /**
43
- * オファーの提供リソース
44
- */
45
- itemOffered: {
46
- /**
47
- * リソースID
48
- */
49
- id: string;
50
- typeOf: EventType.ScreeningEventSeries;
51
- };
52
- /**
53
- * 対応決済方法
54
- */
55
- acceptedPaymentMethod: IAcceptedPaymentMethod;
56
- }
57
- interface ISearchConditions {
58
- limit?: number;
59
- page?: number;
60
- sort?: {
61
- validFrom?: SortType;
62
- };
63
- project?: {
64
- id?: {
65
- $eq?: string;
66
- };
67
- };
68
- id?: {
69
- $eq?: string;
70
- $in?: string[];
71
- };
72
- /**
73
- * オファーコード
74
- */
75
- identifier?: {
76
- $eq?: string;
77
- $in?: string[];
78
- };
79
- itemOffered?: {
80
- /**
81
- * 提供リソースID
82
- */
83
- id?: {
84
- $eq?: string;
85
- $in?: string[];
86
- };
87
- };
88
- acceptedPaymentMethod?: {
89
- /**
90
- * 決済サービスID
91
- */
92
- id?: {
93
- $eq?: string;
94
- };
95
- };
96
- seller?: {
97
- /**
98
- * 提供販売者ID
99
- */
100
- id?: {
101
- $eq?: string;
102
- };
103
- };
104
- validFrom?: {
105
- $lte?: Date;
106
- };
107
- validThrough?: {
108
- $gte?: Date;
109
- };
110
- }
111
- export { IAcceptedPaymentMethodOffer, ISearchConditions };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });