@chevre/factory 4.373.0 → 4.374.0-alpha.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.
@@ -2,9 +2,10 @@ import * as ActionFactory from '../../action';
2
2
  import { ActionType } from '../../actionType';
3
3
  import { IAgent, IObjectWithoutDetail } from '../../assetTransaction/pay';
4
4
  import { AssetTransactionType } from '../../assetTransactionType';
5
+ import { IRecipe } from '../../recipe/publishPaymentUrl';
5
6
  import { TransactionType } from '../../transactionType';
6
7
  import * as AcceptActionFactory from '../accept';
7
- export { IAgent };
8
+ export { IAgent, IRecipe };
8
9
  export interface IObject {
9
10
  object: IObjectWithoutDetail;
10
11
  transactionNumber: string;
package/lib/index.d.ts CHANGED
@@ -109,6 +109,7 @@ import * as PropertyValueFactory from './propertyValue';
109
109
  import * as LocationFeatureSpecificationFactory from './propertyValue/locationFeatureSpecification';
110
110
  import * as QualitativeValueFactory from './qualitativeValue';
111
111
  import * as QuantitativeValueFactory from './quantitativeValue';
112
+ import * as RecipeFactory from './recipe';
112
113
  import * as AccountingReportFactory from './report/accountingReport';
113
114
  import * as ReservationFactory from './reservation';
114
115
  import * as BusReservationFactory from './reservation/busReservation';
@@ -392,6 +393,7 @@ export declare namespace propertyValue {
392
393
  }
393
394
  export import qualitativeValue = QualitativeValueFactory;
394
395
  export import quantitativeValue = QuantitativeValueFactory;
396
+ export import recipe = RecipeFactory;
395
397
  export declare namespace report {
396
398
  export import accountingReport = AccountingReportFactory;
397
399
  }
package/lib/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.project = exports.product = exports.programMembership = exports.priceSpecificationType = exports.priceSpecification = exports.placeType = exports.place = exports.priceCurrency = exports.personType = exports.person = 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.monetaryAmount = exports.merchantReturnPolicy = exports.language = exports.itemAvailability = exports.invoice = exports.iam = exports.eventType = exports.eventStatusType = exports.encodingFormat = exports.event = exports.customer = exports.creativeWorkType = exports.creativeWork = exports.clientUser = exports.categoryCode = exports.authorization = exports.aggregateOffer = exports.additionalProperty = exports.accountType = exports.accountTitle = exports.action = exports.actionType = exports.actionStatusType = exports.account = exports.errorCode = exports.errors = exports.waiter = exports.cognito = void 0;
4
- exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
4
+ exports.unitPriceOffer = exports.unitCode = exports.assetTransactionType = exports.transactionTasksExportationStatus = exports.transactionStatusType = exports.transactionType = exports.transaction = exports.assetTransaction = exports.tripType = exports.trip = exports.thing = exports.taskStatus = exports.taskName = exports.sortType = exports.service = exports.task = exports.seller = exports.reservationType = exports.reservationStatusType = exports.reservation = exports.report = exports.recipe = exports.quantitativeValue = exports.qualitativeValue = exports.propertyValue = void 0;
5
5
  /**
6
6
  * factory
7
7
  */
@@ -100,6 +100,7 @@ var PropertyValueFactory = require("./propertyValue");
100
100
  var LocationFeatureSpecificationFactory = require("./propertyValue/locationFeatureSpecification");
101
101
  var QualitativeValueFactory = require("./qualitativeValue");
102
102
  var QuantitativeValueFactory = require("./quantitativeValue");
103
+ var RecipeFactory = require("./recipe");
103
104
  var AccountingReportFactory = require("./report/accountingReport");
104
105
  var BusReservationFactory = require("./reservation/busReservation");
105
106
  var EventReservationFactory = require("./reservation/event");
@@ -367,6 +368,7 @@ var propertyValue;
367
368
  })(propertyValue = exports.propertyValue || (exports.propertyValue = {}));
368
369
  exports.qualitativeValue = QualitativeValueFactory;
369
370
  exports.quantitativeValue = QuantitativeValueFactory;
371
+ exports.recipe = RecipeFactory;
370
372
  var report;
371
373
  (function (report) {
372
374
  report.accountingReport = AccountingReportFactory;
@@ -0,0 +1,27 @@
1
+ import { IEntryTranArgs, IEntryTranResult, IExecTran3dsResult, IExecTranArgs, IExecTranResult } from '../assetTransaction/pay';
2
+ import * as RecipeFactory from '../recipe';
3
+ export interface IDirectionEntryTran extends RecipeFactory.IHowToDirection {
4
+ beforeMedia: IEntryTranArgs;
5
+ afterMedia: IEntryTranResult;
6
+ }
7
+ export interface IDirectionExecTran extends RecipeFactory.IHowToDirection {
8
+ beforeMedia: IExecTranArgs;
9
+ afterMedia: IExecTranResult | IExecTran3dsResult;
10
+ }
11
+ export interface IStepEntryTran extends RecipeFactory.IHowToStep {
12
+ identifier: RecipeFactory.StepIdentifier.entryTran;
13
+ itemListElement: [IDirectionEntryTran];
14
+ }
15
+ export interface IStepExecTran extends RecipeFactory.IHowToStep {
16
+ identifier: RecipeFactory.StepIdentifier.execTran;
17
+ itemListElement: [IDirectionExecTran];
18
+ }
19
+ export type IHowToStep = IStepEntryTran | IStepExecTran;
20
+ export interface IHowToSection {
21
+ typeOf: 'HowToSection';
22
+ itemListElement: IHowToStep[];
23
+ }
24
+ export interface IRecipe extends RecipeFactory.IRecipe {
25
+ recipeCategory: RecipeFactory.RecipeCategory.publishPaymentUrl;
26
+ step: IHowToSection[];
27
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,36 @@
1
+ import { ActionType } from './actionType';
2
+ import { OrganizationType } from './organizationType';
3
+ export declare enum RecipeCategory {
4
+ publishPaymentUrl = "publishPaymentUrl"
5
+ }
6
+ export declare enum StepIdentifier {
7
+ entryTran = "entryTran",
8
+ execTran = "execTran"
9
+ }
10
+ export interface IHowToDirection {
11
+ typeOf: 'HowToDirection';
12
+ beforeMedia: any;
13
+ afterMedia: any;
14
+ }
15
+ export interface IHowToStep {
16
+ typeOf: 'HowToStep';
17
+ identifier: StepIdentifier;
18
+ itemListElement: IHowToDirection[];
19
+ }
20
+ export interface IHowToSection {
21
+ typeOf: 'HowToSection';
22
+ itemListElement: IHowToStep[];
23
+ }
24
+ export interface IRecipe {
25
+ project: {
26
+ id: string;
27
+ typeOf: OrganizationType.Project;
28
+ };
29
+ typeOf: 'Recipe';
30
+ recipeCategory: RecipeCategory;
31
+ step: IHowToSection[];
32
+ recipeFor: {
33
+ id: string;
34
+ typeOf: ActionType;
35
+ };
36
+ }
package/lib/recipe.js ADDED
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.StepIdentifier = exports.RecipeCategory = void 0;
4
+ var RecipeCategory;
5
+ (function (RecipeCategory) {
6
+ RecipeCategory["publishPaymentUrl"] = "publishPaymentUrl";
7
+ })(RecipeCategory = exports.RecipeCategory || (exports.RecipeCategory = {}));
8
+ var StepIdentifier;
9
+ (function (StepIdentifier) {
10
+ StepIdentifier["entryTran"] = "entryTran";
11
+ StepIdentifier["execTran"] = "execTran";
12
+ })(StepIdentifier = exports.StepIdentifier || (exports.StepIdentifier = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "4.373.0",
3
+ "version": "4.374.0-alpha.0",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",