@chevre/factory 6.2.0-alpha.1 → 6.2.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.
package/README.md CHANGED
@@ -1,22 +1,6 @@
1
- # Chevre Factory Library for Javascript
1
+ # Chevre Factory
2
2
 
3
3
  [![npm (scoped)](https://img.shields.io/npm/v/@chevre/factory.svg)](https://www.npmjs.com/package/@chevre/factory)
4
4
  [![CircleCI](https://circleci.com/gh/chevre-jp/factory.svg?style=shield)](https://circleci.com/gh/chevre-jp/factory)
5
- [![Coverage Status](https://coveralls.io/repos/github/chevre-jp/factory/badge.svg?branch=master)](https://coveralls.io/github/chevre-jp/factory?branch=master)
6
5
  [![Known Vulnerabilities](https://snyk.io/test/github/chevre-jp/factory/badge.svg)](https://snyk.io/test/github/chevre-jp/factory)
7
6
  [![npm](https://img.shields.io/npm/dm/@chevre/factory.svg)](https://nodei.co/npm/@chevre/factory/)
8
-
9
- ## Table of contents
10
-
11
- * [Usage](#usage)
12
-
13
- ## Usage
14
-
15
- ```shell
16
- npm install @chevre/factory
17
- ```
18
-
19
- ### Environment variables
20
-
21
- | Name | Required | Value | Purpose |
22
- | ---- | -------- | ----- | ------- |
@@ -1,10 +1,10 @@
1
- import type { factory as SFR } from '@surfrock/sdk';
1
+ import type { SurfrockFactory } from '@surfrock/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
- export type IPurchaseNumberAuthIn = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
4
- export type IPurchaseNumberAuthResult = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
5
- export type IPurchaseNumberInfo = SFR.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
6
- export type IMkknInfo = SFR.service.auth.purchaseNumberAuth.INvalidTicket;
7
- export type IYkknInfo = SFR.service.auth.purchaseNumberAuth.IValidTicket;
3
+ export type IPurchaseNumberAuthIn = SurfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthIn;
4
+ export type IPurchaseNumberAuthResult = SurfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberAuthResult;
5
+ export type IPurchaseNumberInfo = SurfrockFactory.service.auth.purchaseNumberAuth.IPurchaseNumberInfo;
6
+ export type IMkknInfo = SurfrockFactory.service.auth.purchaseNumberAuth.INvalidTicket;
7
+ export type IYkknInfo = SurfrockFactory.service.auth.purchaseNumberAuth.IValidTicket;
8
8
  export interface IDirectionPurchaseNumberAuth extends RecipeFactory.IHowToDirection {
9
9
  beforeMedia?: IPurchaseNumberAuthIn;
10
10
  afterMedia?: IPurchaseNumberAuthResult;
@@ -1,11 +1,11 @@
1
- import type { factory as SFR } from '@surfrock/sdk';
1
+ import type { SurfrockFactory } from '@surfrock/factory';
2
2
  import * as RecipeFactory from '../recipe';
3
3
  export interface ISeatInfoSyncResultAsError {
4
4
  name: string;
5
5
  message: string;
6
6
  }
7
- export type ISeatInfoSyncIn = SFR.service.seat.seatInfoSync.ISeatInfoSyncIn;
8
- export type ISeatInfoSyncResult = SFR.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
7
+ export type ISeatInfoSyncIn = SurfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
8
+ export type ISeatInfoSyncResult = SurfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | ISeatInfoSyncResultAsError;
9
9
  export interface IDirectionSeatInfoSync extends RecipeFactory.IHowToDirection {
10
10
  beforeMedia?: ISeatInfoSyncIn;
11
11
  afterMedia?: ISeatInfoSyncResult;
@@ -1,13 +1,13 @@
1
- import type { factory as SFR } from '@surfrock/sdk';
1
+ import type { SurfrockFactory } from '@surfrock/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 ISeatInfoSyncCancelIn = SFR.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
8
- export type ISeatInfoSyncCancelResult = SFR.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | IResultAsError;
9
- export type ISeatInfoSyncIn = SFR.service.seat.seatInfoSync.ISeatInfoSyncIn;
10
- export type ISeatInfoSyncResult = SFR.service.seat.seatInfoSync.ISeatInfoSyncResult | IResultAsError;
7
+ export type ISeatInfoSyncCancelIn = SurfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelIn;
8
+ export type ISeatInfoSyncCancelResult = SurfrockFactory.service.seat.seatInfoSyncCancel.ISeatInfoSyncCancelResult | IResultAsError;
9
+ export type ISeatInfoSyncIn = SurfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncIn;
10
+ export type ISeatInfoSyncResult = SurfrockFactory.service.seat.seatInfoSync.ISeatInfoSyncResult | IResultAsError;
11
11
  export interface IDirectionSeatInfoSyncCancel extends RecipeFactory.IHowToDirection {
12
12
  beforeMedia?: ISeatInfoSyncCancelIn;
13
13
  afterMedia?: ISeatInfoSyncCancelResult;
@@ -89,6 +89,10 @@ export interface IAvailableChannelCreditCard {
89
89
  * add paymentServiceChannel ID(2025-02-21~)
90
90
  */
91
91
  id: string;
92
+ /**
93
+ * 対応決済方法や金額のカスタム検証URL
94
+ */
95
+ customValidationUrl?: string;
92
96
  credentials?: never;
93
97
  totalPaymentDue?: never;
94
98
  }
@@ -98,6 +102,10 @@ export interface IAvailableChannelMovieTicket {
98
102
  * add paymentServiceChannel ID(2025-02-21~)
99
103
  */
100
104
  id: string;
105
+ /**
106
+ * 対応決済方法や金額のカスタム検証URL
107
+ */
108
+ customValidationUrl?: string;
101
109
  credentials?: never;
102
110
  totalPaymentDue?: {
103
111
  maxValue?: number;
@@ -163,11 +171,17 @@ export interface ICommonAttributes {
163
171
  }
164
172
  export type ICreditCardPaymentMethod = ICommonAttributes & {
165
173
  typeOf: PaymentServiceType.CreditCard;
174
+ /**
175
+ * クライアントサイドからは見えない想定
176
+ */
166
177
  availableChannel?: IAvailableChannelCreditCard;
167
178
  potentialAction?: IPotentialAction[];
168
179
  };
169
180
  export type IMovieTicketPaymentMethod = ICommonAttributes & {
170
181
  typeOf: PaymentServiceType.MovieTicket;
182
+ /**
183
+ * クライアントサイドからは見えない想定
184
+ */
171
185
  availableChannel?: IAvailableChannelMovieTicket;
172
186
  potentialAction?: IPotentialAction[];
173
187
  };
package/package.json CHANGED
@@ -1,23 +1,16 @@
1
1
  {
2
2
  "name": "@chevre/factory",
3
- "version": "6.2.0-alpha.1",
3
+ "version": "6.2.0-alpha.3",
4
4
  "description": "Chevre Factory Library for Javascript",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
7
7
  "files": [
8
8
  "lib/"
9
9
  ],
10
- "directories": {
11
- "doc": "./doc",
12
- "lib": "./lib",
13
- "example": "./example",
14
- "test": "./test"
15
- },
16
10
  "scripts": {
17
11
  "build": "tsc",
18
12
  "check:all": "npm run clean && npm run build && npm test",
19
13
  "clean": "rimraf ./lib \"npm-debug.log*\" ./doc ./coverage ./.nyc_output",
20
- "doc": "echo \"implementing...\" && exit 0",
21
14
  "eslint": "eslint \"src/**/*.ts\"",
22
15
  "coverage": "vitest run --coverage",
23
16
  "test": "npm run eslint && npm run coverage",
@@ -38,11 +31,10 @@
38
31
  ],
39
32
  "license": "UNLICENSED",
40
33
  "devDependencies": {
41
- "@eslint/js": "10.0.1",
34
+ "@eslint/js": "9.39.4",
42
35
  "@types/node": "22.19.7",
43
36
  "@vitest/coverage-v8": "4.1.0",
44
37
  "@vitest/ui": "4.1.0",
45
- "coveralls": "3.1.1",
46
38
  "eslint": "9.39.4",
47
39
  "rimraf": "^2.6.3",
48
40
  "typescript": "5.6.3",
@@ -53,7 +45,7 @@
53
45
  "@aws-sdk/client-cognito-identity-provider": "3.438.0",
54
46
  "@motionpicture/coa-service": "9.5.0",
55
47
  "@motionpicture/gmo-service": "5.3.0",
56
- "@surfrock/sdk": "1.3.0",
48
+ "@surfrock/factory": "1.0.0-alpha.0",
57
49
  "@waiter/factory": "2.2.0",
58
50
  "setprototypeof": "1.2.0"
59
51
  },