endpoints-sdk-cli 2.5.1 → 2.7.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.
- package/README.md +11 -4
- package/lib/classes/Config.d.ts +5 -1
- package/lib/classes/Config.js +4 -3
- package/lib/classes/Repository.d.ts +2 -1
- package/lib/classes/Repository.js +5 -5
- package/lib/commands/add.d.ts +2 -0
- package/lib/commands/add.js +16 -3
- package/lib/commands/install.js +3 -3
- package/lib/commands/update.js +5 -3
- package/lib/endpoints/sumyca.guest-v3.d.ts +33 -6
- package/lib/endpoints/sumyca.guest-v3.js +22 -4
- package/lib/endpoints/sumyca.manager-v3.d.ts +50 -0
- package/lib/endpoints/sumyca.manager-v3.js +64 -4
- package/lib/endpoints/sumyca.v3.d.ts +83 -6
- package/lib/endpoints/sumyca.v3.js +85 -7
- package/lib/makeFiles.d.ts +1 -0
- package/lib/makeFiles.js +4 -1
- package/oclif.manifest.json +1 -1
- package/package.json +1 -1
- package/lib/endpoints/m2m-core.d.ts +0 -4
- package/lib/endpoints/m2m-core.js +0 -7
- package/lib/endpoints/m2m-core.v1.d.ts +0 -5784
- package/lib/endpoints/m2m-core.v1.js +0 -7657
- package/lib/endpoints/m2m-notifications.d.ts +0 -4
- package/lib/endpoints/m2m-notifications.js +0 -7
- package/lib/endpoints/m2m-notifications.v1.d.ts +0 -86
- package/lib/endpoints/m2m-notifications.v1.js +0 -146
- package/lib/endpoints/m2m-users.d.ts +0 -4
- package/lib/endpoints/m2m-users.js +0 -7
- package/lib/endpoints/m2m-users.v1.d.ts +0 -220
- package/lib/endpoints/m2m-users.v1.js +0 -577
- package/schema.json +0 -52
package/README.md
CHANGED
|
@@ -18,7 +18,7 @@ $ npm install -g endpoints-sdk-cli
|
|
|
18
18
|
$ mes COMMAND
|
|
19
19
|
running command...
|
|
20
20
|
$ mes (-v|--version|version)
|
|
21
|
-
endpoints-sdk-cli/2.
|
|
21
|
+
endpoints-sdk-cli/2.7.0 darwin-arm64 node-v18.18.0
|
|
22
22
|
$ mes --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ mes COMMAND
|
|
@@ -41,6 +41,8 @@ USAGE
|
|
|
41
41
|
$ mes add [REPOSITORY]
|
|
42
42
|
|
|
43
43
|
OPTIONS
|
|
44
|
+
-b, --branch=branch branch name to clone
|
|
45
|
+
-e, --excludes=excludes exclude periods
|
|
44
46
|
-v, --version=version latest or commit hash
|
|
45
47
|
-w, --workspace=workspace a path to workspace containing .endpoints.json
|
|
46
48
|
|
|
@@ -69,13 +71,18 @@ EXAMPLES
|
|
|
69
71
|
$ mes add [username/repository] -v latest
|
|
70
72
|
$ mes add [username/repository] --workspace [workspace directory]
|
|
71
73
|
$ mes add [username/repository] -w [workspace directory]
|
|
74
|
+
$ mes add [username/repository] --branch [branch name]
|
|
75
|
+
$ mes add [username/repository] -b [branch name]
|
|
76
|
+
$ mes add [username/repository] --excludes [period name]
|
|
77
|
+
$ mes add [username/repository] -e [period name]
|
|
78
|
+
$ mes add [username/repository] -e [period name] [period name]
|
|
72
79
|
$ mes add /Users/.../local-repository/
|
|
73
80
|
$ mes add ./local-repository
|
|
74
81
|
$ mes add git@github.com:[username/repository].git
|
|
75
82
|
$ mes add https://github.com/[username/repository].git
|
|
76
83
|
```
|
|
77
84
|
|
|
78
|
-
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.
|
|
85
|
+
_See code: [src/commands/add.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.7.0/src/commands/add.ts)_
|
|
79
86
|
|
|
80
87
|
## `mes help [COMMAND]`
|
|
81
88
|
|
|
@@ -103,7 +110,7 @@ USAGE
|
|
|
103
110
|
$ mes install
|
|
104
111
|
```
|
|
105
112
|
|
|
106
|
-
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.
|
|
113
|
+
_See code: [src/commands/install.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.7.0/src/commands/install.ts)_
|
|
107
114
|
|
|
108
115
|
## `mes update [SERVICE]`
|
|
109
116
|
|
|
@@ -114,7 +121,7 @@ USAGE
|
|
|
114
121
|
$ mes update [SERVICE]
|
|
115
122
|
```
|
|
116
123
|
|
|
117
|
-
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.
|
|
124
|
+
_See code: [src/commands/update.ts](https://github.com/matsuri-tech/endpoints-sdk-cli/blob/v2.7.0/src/commands/update.ts)_
|
|
118
125
|
<!-- commandsstop -->
|
|
119
126
|
|
|
120
127
|
|
package/lib/classes/Config.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ interface Dependencies {
|
|
|
7
7
|
repository: string;
|
|
8
8
|
roots?: Roots;
|
|
9
9
|
workspaces?: string[];
|
|
10
|
+
branch?: string;
|
|
11
|
+
exclude_periods?: string[];
|
|
10
12
|
};
|
|
11
13
|
}
|
|
12
14
|
interface ConfigData {
|
|
@@ -23,11 +25,13 @@ export declare class Config {
|
|
|
23
25
|
output: string;
|
|
24
26
|
environment_identifier: string;
|
|
25
27
|
constructor();
|
|
26
|
-
push({ name, path, version, workspace }: {
|
|
28
|
+
push({ name, path, version, workspace, branch, exclude_periods }: {
|
|
27
29
|
name: string;
|
|
28
30
|
path: string;
|
|
29
31
|
version: string;
|
|
30
32
|
workspace?: string;
|
|
33
|
+
branch: string | undefined;
|
|
34
|
+
exclude_periods: string[] | undefined;
|
|
31
35
|
}): void;
|
|
32
36
|
publish(): void;
|
|
33
37
|
}
|
package/lib/classes/Config.js
CHANGED
|
@@ -30,16 +30,17 @@ class Config {
|
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
|
-
push({ name, path, version, workspace }) {
|
|
33
|
+
push({ name, path, version, workspace, branch, exclude_periods }) {
|
|
34
34
|
var _a, _b, _c;
|
|
35
35
|
const workspaces = (0, unique_1.unique)([
|
|
36
36
|
...(((_b = (_a = this.dependencies) === null || _a === void 0 ? void 0 : _a[name]) === null || _b === void 0 ? void 0 : _b.workspaces) || []),
|
|
37
37
|
workspace,
|
|
38
38
|
]).filter((w) => Boolean(w));
|
|
39
|
-
this.dependencies = Object.assign(Object.assign({}, this.dependencies), { [name]: Object.assign(Object.assign({}, (_c = this.dependencies) === null || _c === void 0 ? void 0 : _c[name]), { version, repository: path,
|
|
39
|
+
this.dependencies = Object.assign(Object.assign({}, this.dependencies), { [name]: Object.assign(Object.assign({}, (_c = this.dependencies) === null || _c === void 0 ? void 0 : _c[name]), { version, repository: path, branch,
|
|
40
|
+
exclude_periods, workspaces: workspaces.length > 0 ? workspaces : undefined }) });
|
|
40
41
|
}
|
|
41
42
|
publish() {
|
|
42
|
-
const data = Object.assign(Object.assign({}, this.data), { output: this.output, environment_identifier: this.environment_identifier, dependencies: this.dependencies });
|
|
43
|
+
const data = Object.assign(Object.assign({}, this.data), { $schema: 'https://matsuri-tech.github.io/endpoints-sdk-cli/schema.json', output: this.output, environment_identifier: this.environment_identifier, dependencies: this.dependencies });
|
|
43
44
|
fs.writeFileSync(this.path, prettier.format(JSON.stringify(data, null, 2), { parser: 'json' }));
|
|
44
45
|
}
|
|
45
46
|
}
|
|
@@ -34,9 +34,10 @@ export declare class Repository {
|
|
|
34
34
|
hash: string;
|
|
35
35
|
data: Data;
|
|
36
36
|
constructor(str: string);
|
|
37
|
-
clone({ version, workspace }: {
|
|
37
|
+
clone({ version, workspace, branch }: {
|
|
38
38
|
version?: string;
|
|
39
39
|
workspace?: string;
|
|
40
|
+
branch: string | undefined;
|
|
40
41
|
}): void;
|
|
41
42
|
private checkout;
|
|
42
43
|
private revParse;
|
|
@@ -14,18 +14,18 @@ class Repository {
|
|
|
14
14
|
this.name = this.getName();
|
|
15
15
|
this.cache = path.resolve(`./node_modules/.endpoints-tmp/${Math.random().toString(36).slice(-8)}`);
|
|
16
16
|
}
|
|
17
|
-
clone({ version, workspace = '' }) {
|
|
17
|
+
clone({ version, workspace = '', branch }) {
|
|
18
18
|
(0, node_child_process_1.execSync)(`git clone --no-checkout --quiet ${this.path} ${this.cache}`);
|
|
19
19
|
this.reset(version);
|
|
20
20
|
this.hash = this.revParse();
|
|
21
|
-
this.data = this.checkout(workspace);
|
|
21
|
+
this.data = this.checkout(workspace, branch);
|
|
22
22
|
}
|
|
23
|
-
checkout(workspace) {
|
|
23
|
+
checkout(workspace, branch) {
|
|
24
24
|
const file = path.resolve(this.cache, workspace, '.endpoints.json');
|
|
25
|
-
const
|
|
25
|
+
const targetBranch = branch ? `origin/${branch}` : (0, node_child_process_1.execSync)(`cd ${this.cache}; git rev-parse --abbrev-ref origin/HEAD`)
|
|
26
26
|
.toString()
|
|
27
27
|
.trim();
|
|
28
|
-
(0, node_child_process_1.execSync)(`cd ${this.cache}; git checkout ${
|
|
28
|
+
(0, node_child_process_1.execSync)(`cd ${this.cache}; git checkout ${targetBranch} -- ${file}`);
|
|
29
29
|
return JSON.parse(fs.readFileSync(file).toString());
|
|
30
30
|
}
|
|
31
31
|
revParse() {
|
package/lib/commands/add.d.ts
CHANGED
|
@@ -7,6 +7,8 @@ export default class Add extends Command {
|
|
|
7
7
|
static flags: {
|
|
8
8
|
version: flags.IOptionFlag<string | undefined>;
|
|
9
9
|
workspace: flags.IOptionFlag<string | undefined>;
|
|
10
|
+
branch: flags.IOptionFlag<string | undefined>;
|
|
11
|
+
excludes: flags.IOptionFlag<string[]>;
|
|
10
12
|
};
|
|
11
13
|
static examples: string[];
|
|
12
14
|
run(): Promise<void>;
|
package/lib/commands/add.js
CHANGED
|
@@ -7,17 +7,19 @@ const Repository_1 = require("../classes/Repository");
|
|
|
7
7
|
const makeFiles_1 = require("../makeFiles");
|
|
8
8
|
class Add extends command_1.Command {
|
|
9
9
|
async run() {
|
|
10
|
-
const { flags: { version, workspace }, args } = this.parse(Add);
|
|
10
|
+
const { flags: { version, workspace, branch, excludes }, args } = this.parse(Add);
|
|
11
11
|
const repository = new Repository_1.Repository(args.repository);
|
|
12
12
|
try {
|
|
13
|
-
repository.clone({ version, workspace });
|
|
13
|
+
repository.clone({ version, workspace, branch });
|
|
14
14
|
const config = new Config_1.Config();
|
|
15
|
-
(0, makeFiles_1.makeFiles)({ repository, config, workspace });
|
|
15
|
+
(0, makeFiles_1.makeFiles)({ repository, config, workspace, exclude_periods: excludes });
|
|
16
16
|
config.push({
|
|
17
17
|
name: repository.name,
|
|
18
18
|
path: repository.path,
|
|
19
19
|
version: version || repository.hash,
|
|
20
20
|
workspace,
|
|
21
|
+
branch,
|
|
22
|
+
exclude_periods: excludes,
|
|
21
23
|
});
|
|
22
24
|
config.publish();
|
|
23
25
|
this.log(`${color_1.color.green('success')}: ${repository.name} updated!`);
|
|
@@ -57,6 +59,12 @@ Add.flags = {
|
|
|
57
59
|
char: 'w',
|
|
58
60
|
description: 'a path to workspace containing .endpoints.json',
|
|
59
61
|
}),
|
|
62
|
+
branch: command_1.flags.string({ char: 'b', description: 'branch name to clone' }),
|
|
63
|
+
excludes: command_1.flags.string({
|
|
64
|
+
char: 'e',
|
|
65
|
+
description: 'exclude periods',
|
|
66
|
+
multiple: true,
|
|
67
|
+
}),
|
|
60
68
|
};
|
|
61
69
|
Add.examples = [
|
|
62
70
|
'$ mes add [username/repository]',
|
|
@@ -65,6 +73,11 @@ Add.examples = [
|
|
|
65
73
|
'$ mes add [username/repository] -v latest',
|
|
66
74
|
'$ mes add [username/repository] --workspace [workspace directory]',
|
|
67
75
|
'$ mes add [username/repository] -w [workspace directory]',
|
|
76
|
+
'$ mes add [username/repository] --branch [branch name]',
|
|
77
|
+
'$ mes add [username/repository] -b [branch name]',
|
|
78
|
+
'$ mes add [username/repository] --excludes [period name]',
|
|
79
|
+
'$ mes add [username/repository] -e [period name]',
|
|
80
|
+
'$ mes add [username/repository] -e [period name] [period name]',
|
|
68
81
|
'$ mes add /Users/.../local-repository/',
|
|
69
82
|
'$ mes add ./local-repository',
|
|
70
83
|
'$ mes add git@github.com:[username/repository].git',
|
package/lib/commands/install.js
CHANGED
|
@@ -13,12 +13,12 @@ class Install extends command_1.Command {
|
|
|
13
13
|
if (!config.dependencies) {
|
|
14
14
|
throw new Error('Dependencies property of the endpoints.config.json does not exist. Use the add command to add dependencies before installing');
|
|
15
15
|
}
|
|
16
|
-
for (const { repository: path, version, workspaces = [''], roots } of Object.values(config.dependencies)) {
|
|
16
|
+
for (const { repository: path, version, workspaces = [''], roots, branch, exclude_periods } of Object.values(config.dependencies)) {
|
|
17
17
|
for (const workspace of workspaces) {
|
|
18
18
|
const repository = new Repository_1.Repository(path);
|
|
19
19
|
repositories.push(repository);
|
|
20
|
-
repository.clone({ version, workspace });
|
|
21
|
-
(0, makeFiles_1.makeFiles)({ repository, workspace, config, roots });
|
|
20
|
+
repository.clone({ version, workspace, branch });
|
|
21
|
+
(0, makeFiles_1.makeFiles)({ repository, workspace, config, roots, exclude_periods });
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
}
|
package/lib/commands/update.js
CHANGED
|
@@ -17,16 +17,18 @@ class Update extends command_1.Command {
|
|
|
17
17
|
if (!(args.service in config.dependencies)) {
|
|
18
18
|
throw new Error('The service does not exist in the dependency. Check dependencies property of the endpoints.config.json. Or use the add command to add dependencies before installing');
|
|
19
19
|
}
|
|
20
|
-
const { repository: path, version, workspaces = [''], roots } = config.dependencies[args.service];
|
|
20
|
+
const { repository: path, version, workspaces = [''], roots, branch, exclude_periods } = config.dependencies[args.service];
|
|
21
21
|
for (const workspace of workspaces) {
|
|
22
22
|
const repository = new Repository_1.Repository(path);
|
|
23
|
-
repository.clone({ version, workspace });
|
|
24
|
-
(0, makeFiles_1.makeFiles)({ repository, config, workspace, roots });
|
|
23
|
+
repository.clone({ version, workspace, branch });
|
|
24
|
+
(0, makeFiles_1.makeFiles)({ repository, config, workspace, roots, exclude_periods });
|
|
25
25
|
config.push({
|
|
26
26
|
name: repository.name,
|
|
27
27
|
path: repository.path,
|
|
28
28
|
version: repository.hash,
|
|
29
29
|
workspace,
|
|
30
|
+
branch,
|
|
31
|
+
exclude_periods,
|
|
30
32
|
});
|
|
31
33
|
repositories.push(repository);
|
|
32
34
|
}
|
|
@@ -293,9 +293,12 @@ export declare const getCalendarsByListingIdAndDateSpan: {
|
|
|
293
293
|
* @param {number} maxMinuteWalk 5
|
|
294
294
|
* @param {string} listingSaleType onSale
|
|
295
295
|
* @param {string} locale ja
|
|
296
|
+
* @param {string} startDate 2020-04-02
|
|
297
|
+
* @param {string} endDate 2020-05-23
|
|
298
|
+
* @param {number} offset 3
|
|
296
299
|
*/
|
|
297
300
|
export declare const searchListingsByLocationNameAndConditions: {
|
|
298
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
301
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
299
302
|
locationName?: string | undefined;
|
|
300
303
|
radius?: number | undefined;
|
|
301
304
|
keywordIds?: string | undefined;
|
|
@@ -315,6 +318,9 @@ export declare const searchListingsByLocationNameAndConditions: {
|
|
|
315
318
|
maxMinuteWalk?: number | undefined;
|
|
316
319
|
listingSaleType?: string | undefined;
|
|
317
320
|
locale?: string | undefined;
|
|
321
|
+
startDate?: string | undefined;
|
|
322
|
+
endDate?: string | undefined;
|
|
323
|
+
offset?: number | undefined;
|
|
318
324
|
}): string;
|
|
319
325
|
method: "GET";
|
|
320
326
|
};
|
|
@@ -340,9 +346,12 @@ export declare const searchListingsByLocationNameAndConditions: {
|
|
|
340
346
|
* @param {number} maxMinuteWalk 5
|
|
341
347
|
* @param {string} listingSaleType onSale
|
|
342
348
|
* @param {string} locale ja
|
|
349
|
+
* @param {string} startDate 2020-04-02
|
|
350
|
+
* @param {string} endDate 2020-05-23
|
|
351
|
+
* @param {number} offset 3
|
|
343
352
|
*/
|
|
344
353
|
export declare const searchListingsByMultipleConditions: {
|
|
345
|
-
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
354
|
+
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
346
355
|
stations?: string | undefined;
|
|
347
356
|
prefecture?: string | undefined;
|
|
348
357
|
cities?: string | undefined;
|
|
@@ -363,6 +372,9 @@ export declare const searchListingsByMultipleConditions: {
|
|
|
363
372
|
maxMinuteWalk?: number | undefined;
|
|
364
373
|
listingSaleType?: string | undefined;
|
|
365
374
|
locale?: string | undefined;
|
|
375
|
+
startDate?: string | undefined;
|
|
376
|
+
endDate?: string | undefined;
|
|
377
|
+
offset?: number | undefined;
|
|
366
378
|
}): string;
|
|
367
379
|
method: "GET";
|
|
368
380
|
};
|
|
@@ -387,9 +399,12 @@ export declare const searchListingsByMultipleConditions: {
|
|
|
387
399
|
* @param {number} maxMinuteWalk 5
|
|
388
400
|
* @param {string} listingSaleType onSale
|
|
389
401
|
* @param {string} locale ja
|
|
402
|
+
* @param {string} startDate 2020-04-02
|
|
403
|
+
* @param {string} endDate 2020-05-23
|
|
404
|
+
* @param {number} offset 3
|
|
390
405
|
*/
|
|
391
406
|
export declare const searchListingsWithRoomTypeByLocationNameAndMultipleConditions: {
|
|
392
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
407
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
393
408
|
locationName?: string | undefined;
|
|
394
409
|
radius?: number | undefined;
|
|
395
410
|
keywordIds?: string | undefined;
|
|
@@ -409,6 +424,9 @@ export declare const searchListingsWithRoomTypeByLocationNameAndMultipleConditio
|
|
|
409
424
|
maxMinuteWalk?: number | undefined;
|
|
410
425
|
listingSaleType?: string | undefined;
|
|
411
426
|
locale?: string | undefined;
|
|
427
|
+
startDate?: string | undefined;
|
|
428
|
+
endDate?: string | undefined;
|
|
429
|
+
offset?: number | undefined;
|
|
412
430
|
}): string;
|
|
413
431
|
method: "GET";
|
|
414
432
|
};
|
|
@@ -866,7 +884,7 @@ export declare const sumyca_guestV3: {
|
|
|
866
884
|
method: "GET";
|
|
867
885
|
};
|
|
868
886
|
searchListingsByLocationNameAndConditions: {
|
|
869
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
887
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
870
888
|
locationName?: string | undefined;
|
|
871
889
|
radius?: number | undefined;
|
|
872
890
|
keywordIds?: string | undefined;
|
|
@@ -886,11 +904,14 @@ export declare const sumyca_guestV3: {
|
|
|
886
904
|
maxMinuteWalk?: number | undefined;
|
|
887
905
|
listingSaleType?: string | undefined;
|
|
888
906
|
locale?: string | undefined;
|
|
907
|
+
startDate?: string | undefined;
|
|
908
|
+
endDate?: string | undefined;
|
|
909
|
+
offset?: number | undefined;
|
|
889
910
|
}): string;
|
|
890
911
|
method: "GET";
|
|
891
912
|
};
|
|
892
913
|
searchListingsByMultipleConditions: {
|
|
893
|
-
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
914
|
+
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
894
915
|
stations?: string | undefined;
|
|
895
916
|
prefecture?: string | undefined;
|
|
896
917
|
cities?: string | undefined;
|
|
@@ -911,11 +932,14 @@ export declare const sumyca_guestV3: {
|
|
|
911
932
|
maxMinuteWalk?: number | undefined;
|
|
912
933
|
listingSaleType?: string | undefined;
|
|
913
934
|
locale?: string | undefined;
|
|
935
|
+
startDate?: string | undefined;
|
|
936
|
+
endDate?: string | undefined;
|
|
937
|
+
offset?: number | undefined;
|
|
914
938
|
}): string;
|
|
915
939
|
method: "GET";
|
|
916
940
|
};
|
|
917
941
|
searchListingsWithRoomTypeByLocationNameAndMultipleConditions: {
|
|
918
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
942
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
919
943
|
locationName?: string | undefined;
|
|
920
944
|
radius?: number | undefined;
|
|
921
945
|
keywordIds?: string | undefined;
|
|
@@ -935,6 +959,9 @@ export declare const sumyca_guestV3: {
|
|
|
935
959
|
maxMinuteWalk?: number | undefined;
|
|
936
960
|
listingSaleType?: string | undefined;
|
|
937
961
|
locale?: string | undefined;
|
|
962
|
+
startDate?: string | undefined;
|
|
963
|
+
endDate?: string | undefined;
|
|
964
|
+
offset?: number | undefined;
|
|
938
965
|
}): string;
|
|
939
966
|
method: "GET";
|
|
940
967
|
};
|
|
@@ -15,7 +15,7 @@ const root = () => {
|
|
|
15
15
|
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
16
16
|
}
|
|
17
17
|
if (process.env.NODE_ENV === "development") {
|
|
18
|
-
__root = "https://
|
|
18
|
+
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
19
19
|
}
|
|
20
20
|
if (process.env.NODE_ENV === "production") {
|
|
21
21
|
__root = "https://api-sumyca.m2msystems.cloud";
|
|
@@ -522,8 +522,11 @@ exports.getCalendarsByListingIdAndDateSpan.method = "GET";
|
|
|
522
522
|
* @param {number} maxMinuteWalk 5
|
|
523
523
|
* @param {string} listingSaleType onSale
|
|
524
524
|
* @param {string} locale ja
|
|
525
|
+
* @param {string} startDate 2020-04-02
|
|
526
|
+
* @param {string} endDate 2020-05-23
|
|
527
|
+
* @param {number} offset 3
|
|
525
528
|
*/
|
|
526
|
-
const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
529
|
+
const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }) => {
|
|
527
530
|
const __root = (0, exports.root)();
|
|
528
531
|
const __queries = Object.entries({
|
|
529
532
|
locationName,
|
|
@@ -545,6 +548,9 @@ const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywo
|
|
|
545
548
|
maxMinuteWalk,
|
|
546
549
|
listingSaleType,
|
|
547
550
|
locale,
|
|
551
|
+
startDate,
|
|
552
|
+
endDate,
|
|
553
|
+
offset,
|
|
548
554
|
})
|
|
549
555
|
.filter(([_, value]) => {
|
|
550
556
|
return value !== undefined;
|
|
@@ -580,8 +586,11 @@ exports.searchListingsByLocationNameAndConditions.method = "GET";
|
|
|
580
586
|
* @param {number} maxMinuteWalk 5
|
|
581
587
|
* @param {string} listingSaleType onSale
|
|
582
588
|
* @param {string} locale ja
|
|
589
|
+
* @param {string} startDate 2020-04-02
|
|
590
|
+
* @param {string} endDate 2020-05-23
|
|
591
|
+
* @param {number} offset 3
|
|
583
592
|
*/
|
|
584
|
-
const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
593
|
+
const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }) => {
|
|
585
594
|
const __root = (0, exports.root)();
|
|
586
595
|
const __queries = Object.entries({
|
|
587
596
|
stations,
|
|
@@ -604,6 +613,9 @@ const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keyw
|
|
|
604
613
|
maxMinuteWalk,
|
|
605
614
|
listingSaleType,
|
|
606
615
|
locale,
|
|
616
|
+
startDate,
|
|
617
|
+
endDate,
|
|
618
|
+
offset,
|
|
607
619
|
})
|
|
608
620
|
.filter(([_, value]) => {
|
|
609
621
|
return value !== undefined;
|
|
@@ -638,8 +650,11 @@ exports.searchListingsByMultipleConditions.method = "GET";
|
|
|
638
650
|
* @param {number} maxMinuteWalk 5
|
|
639
651
|
* @param {string} listingSaleType onSale
|
|
640
652
|
* @param {string} locale ja
|
|
653
|
+
* @param {string} startDate 2020-04-02
|
|
654
|
+
* @param {string} endDate 2020-05-23
|
|
655
|
+
* @param {number} offset 3
|
|
641
656
|
*/
|
|
642
|
-
const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
657
|
+
const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }) => {
|
|
643
658
|
const __root = (0, exports.root)();
|
|
644
659
|
const __queries = Object.entries({
|
|
645
660
|
locationName,
|
|
@@ -661,6 +676,9 @@ const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locatio
|
|
|
661
676
|
maxMinuteWalk,
|
|
662
677
|
listingSaleType,
|
|
663
678
|
locale,
|
|
679
|
+
startDate,
|
|
680
|
+
endDate,
|
|
681
|
+
offset,
|
|
664
682
|
})
|
|
665
683
|
.filter(([_, value]) => {
|
|
666
684
|
return value !== undefined;
|
|
@@ -359,6 +359,26 @@ export declare const managerListingDeleteLocalizedData: {
|
|
|
359
359
|
}): string;
|
|
360
360
|
method: "DELETE";
|
|
361
361
|
};
|
|
362
|
+
/**
|
|
363
|
+
* リスティングの最低宿泊日数を取得する
|
|
364
|
+
*
|
|
365
|
+
*/
|
|
366
|
+
export declare const managerListingGetMinimumLengthOfStay: {
|
|
367
|
+
({ listingId, }: {
|
|
368
|
+
listingId: string;
|
|
369
|
+
}): string;
|
|
370
|
+
method: "GET";
|
|
371
|
+
};
|
|
372
|
+
/**
|
|
373
|
+
* リスティングの最低宿泊日数を更新する
|
|
374
|
+
*
|
|
375
|
+
*/
|
|
376
|
+
export declare const managerListingUpdateMinimumLengthOfStay: {
|
|
377
|
+
({ listingId, }: {
|
|
378
|
+
listingId: string;
|
|
379
|
+
}): string;
|
|
380
|
+
method: "PUT";
|
|
381
|
+
};
|
|
362
382
|
/**
|
|
363
383
|
* idの配列を受け取りlistingのkeywordに一括追加する
|
|
364
384
|
*
|
|
@@ -1042,6 +1062,17 @@ export declare const managerPaymentResolvePaymentOrderUnknownStatus: {
|
|
|
1042
1062
|
}): string;
|
|
1043
1063
|
method: "PUT";
|
|
1044
1064
|
};
|
|
1065
|
+
/**
|
|
1066
|
+
* 決済の有効無効を切り替える
|
|
1067
|
+
* @param {string} enabled false
|
|
1068
|
+
*/
|
|
1069
|
+
export declare const managerPaymentHandlerTogglePaymentOrderEnabled: {
|
|
1070
|
+
({ enabled, paymentOrderId, }: {
|
|
1071
|
+
enabled?: string | undefined;
|
|
1072
|
+
paymentOrderId: string;
|
|
1073
|
+
}): string;
|
|
1074
|
+
method: "PATCH";
|
|
1075
|
+
};
|
|
1045
1076
|
/**
|
|
1046
1077
|
* 決済取引を出力する
|
|
1047
1078
|
* @param {string} yearMonth 2021-09
|
|
@@ -1480,6 +1511,18 @@ export declare const sumyca_managerV3: {
|
|
|
1480
1511
|
}): string;
|
|
1481
1512
|
method: "DELETE";
|
|
1482
1513
|
};
|
|
1514
|
+
managerListingGetMinimumLengthOfStay: {
|
|
1515
|
+
({ listingId, }: {
|
|
1516
|
+
listingId: string;
|
|
1517
|
+
}): string;
|
|
1518
|
+
method: "GET";
|
|
1519
|
+
};
|
|
1520
|
+
managerListingUpdateMinimumLengthOfStay: {
|
|
1521
|
+
({ listingId, }: {
|
|
1522
|
+
listingId: string;
|
|
1523
|
+
}): string;
|
|
1524
|
+
method: "PUT";
|
|
1525
|
+
};
|
|
1483
1526
|
managerListingPutKeyword: {
|
|
1484
1527
|
({ listingId, }: {
|
|
1485
1528
|
listingId: string;
|
|
@@ -1884,6 +1927,13 @@ export declare const sumyca_managerV3: {
|
|
|
1884
1927
|
}): string;
|
|
1885
1928
|
method: "PUT";
|
|
1886
1929
|
};
|
|
1930
|
+
managerPaymentHandlerTogglePaymentOrderEnabled: {
|
|
1931
|
+
({ enabled, paymentOrderId, }: {
|
|
1932
|
+
enabled?: string | undefined;
|
|
1933
|
+
paymentOrderId: string;
|
|
1934
|
+
}): string;
|
|
1935
|
+
method: "PATCH";
|
|
1936
|
+
};
|
|
1887
1937
|
exportVeritransPaymentTransactions: {
|
|
1888
1938
|
({ yearMonth, }: {
|
|
1889
1939
|
yearMonth?: string | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
5
|
-
exports.sumyca_managerV3 = exports.managerRoomTypeDeleteLocalizedData = exports.managerRoomTypeUpdateLocalizedData = exports.managerRoomTypeDetachListings = exports.managerRoomTypeAssociateListing = exports.managerRoomTypeSelectRepresentListing = exports.managerRoomTypeGet = exports.managerRoomTypePatch = exports.managerRoomTypeList = exports.managerRoomTypeCreate = exports.managerCouponListingRelationsDelete = exports.managerCouponListingRelationsBatchCreate = exports.managerCouponListingRelationsGet = exports.managerCouponGet = exports.managerCouponPath = exports.managerCouponList = exports.managerCouponCreate = exports.updateAllBlankPaymentOrderItemId = exports.managerListingVeritransAccountRelationRegister = exports.managerVeritransAccountCreate = exports.managerReservationsList = exports.managerReservationSearchByReservationCode = exports.managerReservationPatch = exports.managerReservationChangeStaySpan = exports.managerReservationCancel = exports.exportVeritransPaymentTransactions = exports.managerPaymentResolvePaymentOrderUnknownStatus = void 0;
|
|
3
|
+
exports.managerContractClauseCreate = exports.managerGuestIdentificationDeleteImageData = exports.managerGuestIdentificationUploadImageData = exports.managerGuestIdentificationGetImageData = exports.managerGuestIdentificationList = exports.managerGetContractToken = exports.managerExecuteAntisocialAnalyze = exports.managerGetAntisocialAnalyzeResult = exports.managerPublishContract = exports.managerUpdateContract = exports.managerGetContract = exports.managerSearchListingsByNameForManage = exports.managerListingPutKeywordRemove = exports.managerListingPutKeyword = exports.managerListingUpdateMinimumLengthOfStay = exports.managerListingGetMinimumLengthOfStay = exports.managerListingDeleteLocalizedData = exports.mangerListingSearch = exports.managerListingCalendarSyncSettingsPut = exports.managerListingCalendarSyncSettingsGet = exports.managerListingAddImage = exports.managerListingDeleteLayoutImage = exports.managerListingUploadLayoutImage = exports.managerListingUploadMainImage = exports.managerListingUpdateImageOrder = exports.managerListingM2mCoreListingRelations = exports.managerListingCreateFromM2mCore = exports.managerListingClose = exports.managerListingOpen = exports.managerListingWithdrawRegistrationRequest = exports.managerListingRequestForRegistration = exports.managerListingGet = exports.managerListingPatch = exports.managerListingUpdate = exports.managerListingList = exports.managerListingCreateNotReady = exports.notificationsPaymentFailedUnsubscribe = exports.notificationsPaymentFailedSubscribe = exports.notificationsPaymentFailedUnsubscribeByPaymentOrderId = exports.notificationsPaymentFailedSubscribeByPaymentOrderId = exports.notificationsPaymentCompletedUnsubscribe = exports.notificationsPaymentCompletedSubscribe = exports.notificationsPaymentCompletedUnsubscribeByPaymentOrderId = exports.notificationsPaymentCompletedSubscribeByPaymentOrderId = exports.notificationsGuestInformationSubmittedUnsubscribe = exports.notificationsGuestInformationSubmittedSubscribe = exports.notificationsGuestInformationSubmittedUnsubscribeByInquiryId = exports.notificationsGuestInformationSubmittedSubscribeByInquiryId = exports.healthCheck = exports.root = void 0;
|
|
4
|
+
exports.managerPaymentCreatePaymentOrderItem = exports.managerPaymentSyncUnregisteredVeritransPaymentTransaction = exports.managerPaymentGetPaymentOrder = exports.managerICalParse = exports.managerCalendarExportCalendarRent = exports.managerCalendarImportCalendarRent = exports.managerCalendarAvailableListingsSearch = exports.managerCalendarBlockFindByListingId = exports.managerCalendarBlockDelete = exports.managerCalendarBlockUpdate = exports.managerCalendarBlockGet = exports.managerCalendarBlockCreate = exports.managerOwnerDelete = exports.managerOwnerUpdate = exports.managerOwnerCreate = exports.managerOwnerGet = exports.managerOwnerList = exports.informationGetStationNamesByLineNameForCompany = exports.informationGetLineNamesByPrefectureNameForCompany = exports.informationGetKeywordsByCategories = exports.informationGetLocationForCompany = exports.informationGetCityNamesInPrefecture = exports.adminCompanyCreate = exports.managerInquiriesGetAssociationGuest = exports.managerInquiriesGetReservation = exports.managerInquiriesListPaymentOrders = exports.managerInquiriesCreatePaymentOrder = exports.managerInquiriesGetPaymentOrderItemsForContract = exports.managerInquiriesPublishInquiryToken = exports.managerInquiriesGetInquiryToken = exports.managerInquiriesStartScreeningGuest = exports.managerInquiriesScreenGuest = exports.managerInquriesGetAssociatedGuestInformation = exports.managerInquiriesReissueContractToken = exports.managerInquiriesReissueContractPassword = exports.managerInquiriesIssueGuestInformationForm = exports.managerInquiryGet = exports.managerInquiryUpdateListingRelation = exports.managerSyncOfContractsAndPaymentsStatusUpdate = exports.managerInquiryAvailabilityStatusUpdate = exports.managerInquiryUpdate = exports.managerInquiriesList = exports.managerInquiriesCreate = exports.internalDeleteListing = exports.adminListingOpen = exports.adminListingAcceptRegistration = exports.adminListingGet = exports.managerContractClauseGet = exports.managerContractClauseUpdate = exports.managerContractClauseList = void 0;
|
|
5
|
+
exports.sumyca_managerV3 = exports.managerRoomTypeDeleteLocalizedData = exports.managerRoomTypeUpdateLocalizedData = exports.managerRoomTypeDetachListings = exports.managerRoomTypeAssociateListing = exports.managerRoomTypeSelectRepresentListing = exports.managerRoomTypeGet = exports.managerRoomTypePatch = exports.managerRoomTypeList = exports.managerRoomTypeCreate = exports.managerCouponListingRelationsDelete = exports.managerCouponListingRelationsBatchCreate = exports.managerCouponListingRelationsGet = exports.managerCouponGet = exports.managerCouponPath = exports.managerCouponList = exports.managerCouponCreate = exports.updateAllBlankPaymentOrderItemId = exports.managerListingVeritransAccountRelationRegister = exports.managerVeritransAccountCreate = exports.managerReservationsList = exports.managerReservationSearchByReservationCode = exports.managerReservationPatch = exports.managerReservationChangeStaySpan = exports.managerReservationCancel = exports.exportVeritransPaymentTransactions = exports.managerPaymentHandlerTogglePaymentOrderEnabled = exports.managerPaymentResolvePaymentOrderUnknownStatus = exports.managerPaymentDeletePaymentOrderItem = exports.managerPaymentUpdatePaymentOrderItem = void 0;
|
|
6
6
|
/* eslint-disable */
|
|
7
7
|
/**
|
|
8
8
|
* A function that returns the URL part common to the endpoints.
|
|
@@ -16,7 +16,7 @@ const root = () => {
|
|
|
16
16
|
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
17
17
|
}
|
|
18
18
|
if (process.env.NODE_ENV === "development") {
|
|
19
|
-
__root = "https://
|
|
19
|
+
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
20
20
|
}
|
|
21
21
|
if (process.env.NODE_ENV === "production") {
|
|
22
22
|
__root = "https://api-sumyca.m2msystems.cloud";
|
|
@@ -709,6 +709,44 @@ const managerListingDeleteLocalizedData = ({ listingId, locale, }) => {
|
|
|
709
709
|
};
|
|
710
710
|
exports.managerListingDeleteLocalizedData = managerListingDeleteLocalizedData;
|
|
711
711
|
exports.managerListingDeleteLocalizedData.method = "DELETE";
|
|
712
|
+
/**
|
|
713
|
+
* リスティングの最低宿泊日数を取得する
|
|
714
|
+
*
|
|
715
|
+
*/
|
|
716
|
+
const managerListingGetMinimumLengthOfStay = ({ listingId, }) => {
|
|
717
|
+
const __root = (0, exports.root)();
|
|
718
|
+
const __queries = Object.entries({})
|
|
719
|
+
.filter(([_, value]) => {
|
|
720
|
+
return value !== undefined;
|
|
721
|
+
})
|
|
722
|
+
.map(([key, value]) => {
|
|
723
|
+
return `${key}=${value}`;
|
|
724
|
+
})
|
|
725
|
+
.join("&");
|
|
726
|
+
const __path = `${__root}/${`manager/listings/${listingId}/minimum_length_of_stay`}`;
|
|
727
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
728
|
+
};
|
|
729
|
+
exports.managerListingGetMinimumLengthOfStay = managerListingGetMinimumLengthOfStay;
|
|
730
|
+
exports.managerListingGetMinimumLengthOfStay.method = "GET";
|
|
731
|
+
/**
|
|
732
|
+
* リスティングの最低宿泊日数を更新する
|
|
733
|
+
*
|
|
734
|
+
*/
|
|
735
|
+
const managerListingUpdateMinimumLengthOfStay = ({ listingId, }) => {
|
|
736
|
+
const __root = (0, exports.root)();
|
|
737
|
+
const __queries = Object.entries({})
|
|
738
|
+
.filter(([_, value]) => {
|
|
739
|
+
return value !== undefined;
|
|
740
|
+
})
|
|
741
|
+
.map(([key, value]) => {
|
|
742
|
+
return `${key}=${value}`;
|
|
743
|
+
})
|
|
744
|
+
.join("&");
|
|
745
|
+
const __path = `${__root}/${`manager/listings/${listingId}/minimum_length_of_stay`}`;
|
|
746
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
747
|
+
};
|
|
748
|
+
exports.managerListingUpdateMinimumLengthOfStay = managerListingUpdateMinimumLengthOfStay;
|
|
749
|
+
exports.managerListingUpdateMinimumLengthOfStay.method = "PUT";
|
|
712
750
|
/**
|
|
713
751
|
* idの配列を受け取りlistingのkeywordに一括追加する
|
|
714
752
|
*
|
|
@@ -2003,6 +2041,25 @@ const managerPaymentResolvePaymentOrderUnknownStatus = ({ paymentOrderId, }) =>
|
|
|
2003
2041
|
};
|
|
2004
2042
|
exports.managerPaymentResolvePaymentOrderUnknownStatus = managerPaymentResolvePaymentOrderUnknownStatus;
|
|
2005
2043
|
exports.managerPaymentResolvePaymentOrderUnknownStatus.method = "PUT";
|
|
2044
|
+
/**
|
|
2045
|
+
* 決済の有効無効を切り替える
|
|
2046
|
+
* @param {string} enabled false
|
|
2047
|
+
*/
|
|
2048
|
+
const managerPaymentHandlerTogglePaymentOrderEnabled = ({ enabled, paymentOrderId, }) => {
|
|
2049
|
+
const __root = (0, exports.root)();
|
|
2050
|
+
const __queries = Object.entries({ enabled })
|
|
2051
|
+
.filter(([_, value]) => {
|
|
2052
|
+
return value !== undefined;
|
|
2053
|
+
})
|
|
2054
|
+
.map(([key, value]) => {
|
|
2055
|
+
return `${key}=${value}`;
|
|
2056
|
+
})
|
|
2057
|
+
.join("&");
|
|
2058
|
+
const __path = `${__root}/${`manager/payment_orders/${paymentOrderId}/enabled`}`;
|
|
2059
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
2060
|
+
};
|
|
2061
|
+
exports.managerPaymentHandlerTogglePaymentOrderEnabled = managerPaymentHandlerTogglePaymentOrderEnabled;
|
|
2062
|
+
exports.managerPaymentHandlerTogglePaymentOrderEnabled.method = "PATCH";
|
|
2006
2063
|
/**
|
|
2007
2064
|
* 決済取引を出力する
|
|
2008
2065
|
* @param {string} yearMonth 2021-09
|
|
@@ -2515,6 +2572,8 @@ exports.sumyca_managerV3 = {
|
|
|
2515
2572
|
managerListingCalendarSyncSettingsPut: exports.managerListingCalendarSyncSettingsPut,
|
|
2516
2573
|
mangerListingSearch: exports.mangerListingSearch,
|
|
2517
2574
|
managerListingDeleteLocalizedData: exports.managerListingDeleteLocalizedData,
|
|
2575
|
+
managerListingGetMinimumLengthOfStay: exports.managerListingGetMinimumLengthOfStay,
|
|
2576
|
+
managerListingUpdateMinimumLengthOfStay: exports.managerListingUpdateMinimumLengthOfStay,
|
|
2518
2577
|
managerListingPutKeyword: exports.managerListingPutKeyword,
|
|
2519
2578
|
managerListingPutKeywordRemove: exports.managerListingPutKeywordRemove,
|
|
2520
2579
|
managerSearchListingsByNameForManage: exports.managerSearchListingsByNameForManage,
|
|
@@ -2582,6 +2641,7 @@ exports.sumyca_managerV3 = {
|
|
|
2582
2641
|
managerPaymentUpdatePaymentOrderItem: exports.managerPaymentUpdatePaymentOrderItem,
|
|
2583
2642
|
managerPaymentDeletePaymentOrderItem: exports.managerPaymentDeletePaymentOrderItem,
|
|
2584
2643
|
managerPaymentResolvePaymentOrderUnknownStatus: exports.managerPaymentResolvePaymentOrderUnknownStatus,
|
|
2644
|
+
managerPaymentHandlerTogglePaymentOrderEnabled: exports.managerPaymentHandlerTogglePaymentOrderEnabled,
|
|
2585
2645
|
exportVeritransPaymentTransactions: exports.exportVeritransPaymentTransactions,
|
|
2586
2646
|
managerReservationCancel: exports.managerReservationCancel,
|
|
2587
2647
|
managerReservationChangeStaySpan: exports.managerReservationChangeStaySpan,
|