endpoints-sdk-cli 2.6.0 → 2.8.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 +8 -4
- package/lib/classes/Config.d.ts +3 -1
- package/lib/classes/Config.js +4 -3
- package/lib/classes/Repository.d.ts +3 -1
- package/lib/classes/Repository.js +7 -4
- package/lib/commands/add.d.ts +1 -0
- package/lib/commands/add.js +12 -3
- package/lib/commands/install.js +6 -6
- package/lib/commands/update.js +6 -5
- 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 +5 -4
- package/lib/makeFiles.js +7 -4
- package/lib/templates/files/endpoints.d.ts +1 -1
- package/lib/templates/files/endpoints.js +3 -3
- package/lib/templates/functions/endpoint.d.ts +1 -1
- package/lib/templates/functions/endpoint.js +10 -4
- package/oclif.manifest.json +1 -1
- package/package.json +3 -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.8.0 darwin-arm64 node-v18.19.0
|
|
22
22
|
$ mes --help [COMMAND]
|
|
23
23
|
USAGE
|
|
24
24
|
$ mes COMMAND
|
|
@@ -42,6 +42,7 @@ USAGE
|
|
|
42
42
|
|
|
43
43
|
OPTIONS
|
|
44
44
|
-b, --branch=branch branch name to clone
|
|
45
|
+
-e, --excludes=excludes exclude periods
|
|
45
46
|
-v, --version=version latest or commit hash
|
|
46
47
|
-w, --workspace=workspace a path to workspace containing .endpoints.json
|
|
47
48
|
|
|
@@ -72,13 +73,16 @@ EXAMPLES
|
|
|
72
73
|
$ mes add [username/repository] -w [workspace directory]
|
|
73
74
|
$ mes add [username/repository] --branch [branch name]
|
|
74
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]
|
|
75
79
|
$ mes add /Users/.../local-repository/
|
|
76
80
|
$ mes add ./local-repository
|
|
77
81
|
$ mes add git@github.com:[username/repository].git
|
|
78
82
|
$ mes add https://github.com/[username/repository].git
|
|
79
83
|
```
|
|
80
84
|
|
|
81
|
-
_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.8.0/src/commands/add.ts)_
|
|
82
86
|
|
|
83
87
|
## `mes help [COMMAND]`
|
|
84
88
|
|
|
@@ -106,7 +110,7 @@ USAGE
|
|
|
106
110
|
$ mes install
|
|
107
111
|
```
|
|
108
112
|
|
|
109
|
-
_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.8.0/src/commands/install.ts)_
|
|
110
114
|
|
|
111
115
|
## `mes update [SERVICE]`
|
|
112
116
|
|
|
@@ -117,7 +121,7 @@ USAGE
|
|
|
117
121
|
$ mes update [SERVICE]
|
|
118
122
|
```
|
|
119
123
|
|
|
120
|
-
_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.8.0/src/commands/update.ts)_
|
|
121
125
|
<!-- commandsstop -->
|
|
122
126
|
|
|
123
127
|
|
package/lib/classes/Config.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ interface Dependencies {
|
|
|
8
8
|
roots?: Roots;
|
|
9
9
|
workspaces?: string[];
|
|
10
10
|
branch?: string;
|
|
11
|
+
exclude_periods?: string[];
|
|
11
12
|
};
|
|
12
13
|
}
|
|
13
14
|
interface ConfigData {
|
|
@@ -24,12 +25,13 @@ export declare class Config {
|
|
|
24
25
|
output: string;
|
|
25
26
|
environment_identifier: string;
|
|
26
27
|
constructor();
|
|
27
|
-
push({ name, path, version, workspace, branch }: {
|
|
28
|
+
push({ name, path, version, workspace, branch, exclude_periods }: {
|
|
28
29
|
name: string;
|
|
29
30
|
path: string;
|
|
30
31
|
version: string;
|
|
31
32
|
workspace?: string;
|
|
32
33
|
branch: string | undefined;
|
|
34
|
+
exclude_periods: string[] | undefined;
|
|
33
35
|
}): void;
|
|
34
36
|
publish(): void;
|
|
35
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, branch }) {
|
|
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, branch,
|
|
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
|
}
|
|
@@ -16,6 +16,8 @@ export interface Endpoint {
|
|
|
16
16
|
desc: string;
|
|
17
17
|
method?: string;
|
|
18
18
|
authSchema?: AuthSchema;
|
|
19
|
+
request?: null | Record<string, unknown>;
|
|
20
|
+
response?: null | Record<string, unknown>;
|
|
19
21
|
}
|
|
20
22
|
export interface Api {
|
|
21
23
|
[endpoint: string]: Endpoint;
|
|
@@ -38,7 +40,7 @@ export declare class Repository {
|
|
|
38
40
|
version?: string;
|
|
39
41
|
workspace?: string;
|
|
40
42
|
branch: string | undefined;
|
|
41
|
-
}): void
|
|
43
|
+
}): Promise<void>;
|
|
42
44
|
private checkout;
|
|
43
45
|
private revParse;
|
|
44
46
|
private reset;
|
|
@@ -6,6 +6,7 @@ const path = tslib_1.__importStar(require("node:path"));
|
|
|
6
6
|
const node_child_process_1 = require("node:child_process");
|
|
7
7
|
const fs = tslib_1.__importStar(require("node:fs"));
|
|
8
8
|
const rimraf_1 = tslib_1.__importDefault(require("rimraf"));
|
|
9
|
+
const json_schema_ref_parser_1 = tslib_1.__importDefault(require("@apidevtools/json-schema-ref-parser"));
|
|
9
10
|
class Repository {
|
|
10
11
|
constructor(str) {
|
|
11
12
|
this.hash = 'latest';
|
|
@@ -14,19 +15,21 @@ class Repository {
|
|
|
14
15
|
this.name = this.getName();
|
|
15
16
|
this.cache = path.resolve(`./node_modules/.endpoints-tmp/${Math.random().toString(36).slice(-8)}`);
|
|
16
17
|
}
|
|
17
|
-
clone({ version, workspace = '', branch }) {
|
|
18
|
+
async clone({ version, workspace = '', branch }) {
|
|
18
19
|
(0, node_child_process_1.execSync)(`git clone --no-checkout --quiet ${this.path} ${this.cache}`);
|
|
19
20
|
this.reset(version);
|
|
20
21
|
this.hash = this.revParse();
|
|
21
|
-
this.data = this.checkout(workspace, branch);
|
|
22
|
+
this.data = await this.checkout(workspace, branch);
|
|
22
23
|
}
|
|
23
|
-
checkout(workspace, branch) {
|
|
24
|
+
async checkout(workspace, branch) {
|
|
24
25
|
const file = path.resolve(this.cache, workspace, '.endpoints.json');
|
|
25
26
|
const targetBranch = branch ? `origin/${branch}` : (0, node_child_process_1.execSync)(`cd ${this.cache}; git rev-parse --abbrev-ref origin/HEAD`)
|
|
26
27
|
.toString()
|
|
27
28
|
.trim();
|
|
28
29
|
(0, node_child_process_1.execSync)(`cd ${this.cache}; git checkout ${targetBranch} -- ${file}`);
|
|
29
|
-
|
|
30
|
+
const schema = (await json_schema_ref_parser_1.default.dereference(JSON.parse(fs.readFileSync(file).toString())));
|
|
31
|
+
delete schema.$defs;
|
|
32
|
+
return schema;
|
|
30
33
|
}
|
|
31
34
|
revParse() {
|
|
32
35
|
const hash = (0, node_child_process_1.execSync)(`cd ${this.cache}; git rev-parse HEAD`)
|
package/lib/commands/add.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export default class Add extends Command {
|
|
|
8
8
|
version: flags.IOptionFlag<string | undefined>;
|
|
9
9
|
workspace: flags.IOptionFlag<string | undefined>;
|
|
10
10
|
branch: flags.IOptionFlag<string | undefined>;
|
|
11
|
+
excludes: flags.IOptionFlag<string[]>;
|
|
11
12
|
};
|
|
12
13
|
static examples: string[];
|
|
13
14
|
run(): Promise<void>;
|
package/lib/commands/add.js
CHANGED
|
@@ -7,18 +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, branch }, 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, branch });
|
|
13
|
+
await repository.clone({ version, workspace, branch });
|
|
14
14
|
const config = new Config_1.Config();
|
|
15
|
-
(0, makeFiles_1.makeFiles)({ repository, config, workspace });
|
|
15
|
+
await (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
21
|
branch,
|
|
22
|
+
exclude_periods: excludes,
|
|
22
23
|
});
|
|
23
24
|
config.publish();
|
|
24
25
|
this.log(`${color_1.color.green('success')}: ${repository.name} updated!`);
|
|
@@ -59,6 +60,11 @@ Add.flags = {
|
|
|
59
60
|
description: 'a path to workspace containing .endpoints.json',
|
|
60
61
|
}),
|
|
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
|
+
}),
|
|
62
68
|
};
|
|
63
69
|
Add.examples = [
|
|
64
70
|
'$ mes add [username/repository]',
|
|
@@ -69,6 +75,9 @@ Add.examples = [
|
|
|
69
75
|
'$ mes add [username/repository] -w [workspace directory]',
|
|
70
76
|
'$ mes add [username/repository] --branch [branch name]',
|
|
71
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]',
|
|
72
81
|
'$ mes add /Users/.../local-repository/',
|
|
73
82
|
'$ mes add ./local-repository',
|
|
74
83
|
'$ mes add git@github.com:[username/repository].git',
|
package/lib/commands/install.js
CHANGED
|
@@ -13,14 +13,14 @@ 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
|
-
|
|
17
|
-
|
|
16
|
+
await Promise.all(Object.entries(config.dependencies).map(async ([_name, { repository: path, version, workspaces = [''], roots, branch, exclude_periods }]) => {
|
|
17
|
+
return Promise.all(workspaces.map(async (workspace) => {
|
|
18
18
|
const repository = new Repository_1.Repository(path);
|
|
19
19
|
repositories.push(repository);
|
|
20
|
-
repository.clone({ version, workspace, branch });
|
|
21
|
-
(0, makeFiles_1.makeFiles)({ repository, workspace, config, roots });
|
|
22
|
-
}
|
|
23
|
-
}
|
|
20
|
+
await repository.clone({ version, workspace, branch });
|
|
21
|
+
await (0, makeFiles_1.makeFiles)({ repository, workspace, config, roots, exclude_periods });
|
|
22
|
+
}));
|
|
23
|
+
}));
|
|
24
24
|
}
|
|
25
25
|
catch (error) {
|
|
26
26
|
// @ts-expect-error
|
package/lib/commands/update.js
CHANGED
|
@@ -17,20 +17,21 @@ 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, branch } = config.dependencies[args.service];
|
|
21
|
-
|
|
20
|
+
const { repository: path, version, workspaces = [''], roots, branch, exclude_periods } = config.dependencies[args.service];
|
|
21
|
+
await Promise.all(workspaces.map(async (workspace) => {
|
|
22
22
|
const repository = new Repository_1.Repository(path);
|
|
23
|
-
repository.clone({ version, workspace, branch });
|
|
24
|
-
(0, makeFiles_1.makeFiles)({ repository, config, workspace, roots });
|
|
23
|
+
await repository.clone({ version, workspace, branch });
|
|
24
|
+
await (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
30
|
branch,
|
|
31
|
+
exclude_periods,
|
|
31
32
|
});
|
|
32
33
|
repositories.push(repository);
|
|
33
|
-
}
|
|
34
|
+
}));
|
|
34
35
|
config.publish();
|
|
35
36
|
}
|
|
36
37
|
catch (error) {
|
|
@@ -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;
|