endpoints-sdk-cli 2.6.0 → 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 +8 -4
- package/lib/classes/Config.d.ts +3 -1
- package/lib/classes/Config.js +4 -3
- package/lib/commands/add.d.ts +1 -0
- package/lib/commands/add.js +11 -2
- package/lib/commands/install.js +2 -2
- package/lib/commands/update.js +3 -2
- 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
|
@@ -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
|
};
|
|
@@ -839,6 +857,26 @@ export declare const managerListingDeleteLocalizedData: {
|
|
|
839
857
|
}): string;
|
|
840
858
|
method: "DELETE";
|
|
841
859
|
};
|
|
860
|
+
/**
|
|
861
|
+
* リスティングの最低宿泊日数を取得する
|
|
862
|
+
*
|
|
863
|
+
*/
|
|
864
|
+
export declare const managerListingGetMinimumLengthOfStay: {
|
|
865
|
+
({ listingId, }: {
|
|
866
|
+
listingId: string;
|
|
867
|
+
}): string;
|
|
868
|
+
method: "GET";
|
|
869
|
+
};
|
|
870
|
+
/**
|
|
871
|
+
* リスティングの最低宿泊日数を更新する
|
|
872
|
+
*
|
|
873
|
+
*/
|
|
874
|
+
export declare const managerListingUpdateMinimumLengthOfStay: {
|
|
875
|
+
({ listingId, }: {
|
|
876
|
+
listingId: string;
|
|
877
|
+
}): string;
|
|
878
|
+
method: "PUT";
|
|
879
|
+
};
|
|
842
880
|
/**
|
|
843
881
|
* idの配列を受け取りlistingのkeywordに一括追加する
|
|
844
882
|
*
|
|
@@ -1629,6 +1667,17 @@ export declare const managerPaymentResolvePaymentOrderUnknownStatus: {
|
|
|
1629
1667
|
}): string;
|
|
1630
1668
|
method: "PUT";
|
|
1631
1669
|
};
|
|
1670
|
+
/**
|
|
1671
|
+
* 決済の有効無効を切り替える
|
|
1672
|
+
* @param {string} enabled false
|
|
1673
|
+
*/
|
|
1674
|
+
export declare const managerPaymentHandlerTogglePaymentOrderEnabled: {
|
|
1675
|
+
({ enabled, paymentOrderId, }: {
|
|
1676
|
+
enabled?: string | undefined;
|
|
1677
|
+
paymentOrderId: string;
|
|
1678
|
+
}): string;
|
|
1679
|
+
method: "PATCH";
|
|
1680
|
+
};
|
|
1632
1681
|
/**
|
|
1633
1682
|
* 決済取引を出力する
|
|
1634
1683
|
* @param {string} yearMonth 2021-09
|
|
@@ -2085,7 +2134,7 @@ export declare const sumyca_v3: {
|
|
|
2085
2134
|
method: "GET";
|
|
2086
2135
|
};
|
|
2087
2136
|
searchListingsByLocationNameAndConditions: {
|
|
2088
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
2137
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
2089
2138
|
locationName?: string | undefined;
|
|
2090
2139
|
radius?: number | undefined;
|
|
2091
2140
|
keywordIds?: string | undefined;
|
|
@@ -2105,11 +2154,14 @@ export declare const sumyca_v3: {
|
|
|
2105
2154
|
maxMinuteWalk?: number | undefined;
|
|
2106
2155
|
listingSaleType?: string | undefined;
|
|
2107
2156
|
locale?: string | undefined;
|
|
2157
|
+
startDate?: string | undefined;
|
|
2158
|
+
endDate?: string | undefined;
|
|
2159
|
+
offset?: number | undefined;
|
|
2108
2160
|
}): string;
|
|
2109
2161
|
method: "GET";
|
|
2110
2162
|
};
|
|
2111
2163
|
searchListingsByMultipleConditions: {
|
|
2112
|
-
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
2164
|
+
({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
2113
2165
|
stations?: string | undefined;
|
|
2114
2166
|
prefecture?: string | undefined;
|
|
2115
2167
|
cities?: string | undefined;
|
|
@@ -2130,11 +2182,14 @@ export declare const sumyca_v3: {
|
|
|
2130
2182
|
maxMinuteWalk?: number | undefined;
|
|
2131
2183
|
listingSaleType?: string | undefined;
|
|
2132
2184
|
locale?: string | undefined;
|
|
2185
|
+
startDate?: string | undefined;
|
|
2186
|
+
endDate?: string | undefined;
|
|
2187
|
+
offset?: number | undefined;
|
|
2133
2188
|
}): string;
|
|
2134
2189
|
method: "GET";
|
|
2135
2190
|
};
|
|
2136
2191
|
searchListingsWithRoomTypeByLocationNameAndMultipleConditions: {
|
|
2137
|
-
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }: {
|
|
2192
|
+
({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }: {
|
|
2138
2193
|
locationName?: string | undefined;
|
|
2139
2194
|
radius?: number | undefined;
|
|
2140
2195
|
keywordIds?: string | undefined;
|
|
@@ -2154,6 +2209,9 @@ export declare const sumyca_v3: {
|
|
|
2154
2209
|
maxMinuteWalk?: number | undefined;
|
|
2155
2210
|
listingSaleType?: string | undefined;
|
|
2156
2211
|
locale?: string | undefined;
|
|
2212
|
+
startDate?: string | undefined;
|
|
2213
|
+
endDate?: string | undefined;
|
|
2214
|
+
offset?: number | undefined;
|
|
2157
2215
|
}): string;
|
|
2158
2216
|
method: "GET";
|
|
2159
2217
|
};
|
|
@@ -2392,6 +2450,18 @@ export declare const sumyca_v3: {
|
|
|
2392
2450
|
}): string;
|
|
2393
2451
|
method: "DELETE";
|
|
2394
2452
|
};
|
|
2453
|
+
managerListingGetMinimumLengthOfStay: {
|
|
2454
|
+
({ listingId, }: {
|
|
2455
|
+
listingId: string;
|
|
2456
|
+
}): string;
|
|
2457
|
+
method: "GET";
|
|
2458
|
+
};
|
|
2459
|
+
managerListingUpdateMinimumLengthOfStay: {
|
|
2460
|
+
({ listingId, }: {
|
|
2461
|
+
listingId: string;
|
|
2462
|
+
}): string;
|
|
2463
|
+
method: "PUT";
|
|
2464
|
+
};
|
|
2395
2465
|
managerListingPutKeyword: {
|
|
2396
2466
|
({ listingId, }: {
|
|
2397
2467
|
listingId: string;
|
|
@@ -2859,6 +2929,13 @@ export declare const sumyca_v3: {
|
|
|
2859
2929
|
}): string;
|
|
2860
2930
|
method: "PUT";
|
|
2861
2931
|
};
|
|
2932
|
+
managerPaymentHandlerTogglePaymentOrderEnabled: {
|
|
2933
|
+
({ enabled, paymentOrderId, }: {
|
|
2934
|
+
enabled?: string | undefined;
|
|
2935
|
+
paymentOrderId: string;
|
|
2936
|
+
}): string;
|
|
2937
|
+
method: "PATCH";
|
|
2938
|
+
};
|
|
2862
2939
|
exportVeritransPaymentTransactions: {
|
|
2863
2940
|
({ yearMonth, }: {
|
|
2864
2941
|
yearMonth?: string | undefined;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
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.reservationReserveImmediately = exports.guestUserAssociateWithInquiry = exports.guestUserResetPassword = exports.guestUserSendPasswordResetEmail = exports.guestUserSigninWithOAuth = exports.guestUserSigninWithPassword = exports.guestuserSignUpWithOAuth = exports.guestUserSignUpWithPassword = exports.getSaleTypeOnSaleListingsSortedBySaleTypeUpdatedAtAsc = exports.searchListingsWithRoomTypeByLocationNameAndMultipleConditions = exports.searchListingsByMultipleConditions = exports.searchListingsByLocationNameAndConditions = exports.getCalendarsByListingIdAndDateSpan = exports.listingGetTotalCostForDateSpanAndPersons = exports.listingGet = exports.authGuestIdentificationDeleteImageData = exports.authGuestIdentificationAdditionalUploadImageData = exports.authGuestIdentificationUploadImageData = exports.authGuestIdentificationGetImageData = exports.authGuestIdentificationList = exports.authContractAgree = exports.authContractSubmitGuestInformation = exports.authContractSubmitGuestInformationForIndividual = exports.authContractUpdateCorporationInformation = exports.authContractUpdateGuestInformation = exports.authContractGetCorporationInformation = exports.authContractGetGuestInformation = exports.authReadContract = exports.authGetContract = exports.authListContracts = exports.guestIdentificationUploadImage = exports.contractGetResidentCount = exports.contractAgree = exports.contractSubmitCorporationInformation = exports.contractSubmitGuestInformation = exports.readContract = exports.healthCheck = exports.root = void 0;
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.sumyca_v3 = exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons = exports.roomTypeGetRepresentListing = exports.roomTypeCalendarGetByRoomTypeId = 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.guestCouponGetByCouponCode = exports.updateAllBlankPaymentOrderItemId = exports.managerListingVeritransAccountRelationRegister = exports.managerVeritransAccountCreate = exports.managerReservationsList = exports.managerReservationSearchByReservationCode = exports.managerReservationPatch = exports.managerReservationChangeStaySpan = void 0;
|
|
4
|
+
exports.managerInquiriesCreate = exports.inquiryCreateForCategoryPage = exports.inquiryGetCoupon = exports.inquiryGetVeritransTokenApiKey = exports.inquiryGetReservation = exports.inquiryGetPaymentOrders = exports.inquiryCreate = exports.internalDeleteListing = exports.adminListingOpen = exports.adminListingAcceptRegistration = exports.adminListingGet = exports.managerContractClauseGet = exports.managerContractClauseUpdate = exports.managerContractClauseList = 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 = void 0;
|
|
5
|
+
exports.managerPaymentResolvePaymentOrderUnknownStatus = exports.managerPaymentDeletePaymentOrderItem = exports.managerPaymentUpdatePaymentOrderItem = exports.managerPaymentCreatePaymentOrderItem = exports.managerPaymentSyncUnregisteredVeritransPaymentTransaction = exports.managerPaymentGetPaymentOrder = exports.paymentResult = exports.paymentOrdersPayForInstantBook = exports.paymentNotification = exports.paymentOrdersPayConditional3DSecure = exports.paymentOrdersPayConditional = 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 = void 0;
|
|
6
|
+
exports.sumyca_v3 = exports.roomTypeGetHotelStayTotalCostForAvailableDateSpanAndPersons = exports.roomTypeGetRepresentListing = exports.roomTypeCalendarGetByRoomTypeId = 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.guestCouponGetByCouponCode = exports.updateAllBlankPaymentOrderItemId = exports.managerListingVeritransAccountRelationRegister = exports.managerVeritransAccountCreate = exports.managerReservationsList = exports.managerReservationSearchByReservationCode = exports.managerReservationPatch = exports.managerReservationChangeStaySpan = exports.managerReservationCancel = exports.exportVeritransPaymentTransactions = exports.managerPaymentHandlerTogglePaymentOrderEnabled = void 0;
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
/**
|
|
9
9
|
* A function that returns the URL part common to the endpoints.
|
|
@@ -17,7 +17,7 @@ const root = () => {
|
|
|
17
17
|
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
18
18
|
}
|
|
19
19
|
if (process.env.NODE_ENV === "development") {
|
|
20
|
-
__root = "https://
|
|
20
|
+
__root = "https://api-sumyca.dev.m2msystems.cloud";
|
|
21
21
|
}
|
|
22
22
|
if (process.env.NODE_ENV === "production") {
|
|
23
23
|
__root = "https://api-sumyca.m2msystems.cloud";
|
|
@@ -524,8 +524,11 @@ exports.getCalendarsByListingIdAndDateSpan.method = "GET";
|
|
|
524
524
|
* @param {number} maxMinuteWalk 5
|
|
525
525
|
* @param {string} listingSaleType onSale
|
|
526
526
|
* @param {string} locale ja
|
|
527
|
+
* @param {string} startDate 2020-04-02
|
|
528
|
+
* @param {string} endDate 2020-05-23
|
|
529
|
+
* @param {number} offset 3
|
|
527
530
|
*/
|
|
528
|
-
const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
531
|
+
const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }) => {
|
|
529
532
|
const __root = (0, exports.root)();
|
|
530
533
|
const __queries = Object.entries({
|
|
531
534
|
locationName,
|
|
@@ -547,6 +550,9 @@ const searchListingsByLocationNameAndConditions = ({ locationName, radius, keywo
|
|
|
547
550
|
maxMinuteWalk,
|
|
548
551
|
listingSaleType,
|
|
549
552
|
locale,
|
|
553
|
+
startDate,
|
|
554
|
+
endDate,
|
|
555
|
+
offset,
|
|
550
556
|
})
|
|
551
557
|
.filter(([_, value]) => {
|
|
552
558
|
return value !== undefined;
|
|
@@ -582,8 +588,11 @@ exports.searchListingsByLocationNameAndConditions.method = "GET";
|
|
|
582
588
|
* @param {number} maxMinuteWalk 5
|
|
583
589
|
* @param {string} listingSaleType onSale
|
|
584
590
|
* @param {string} locale ja
|
|
591
|
+
* @param {string} startDate 2020-04-02
|
|
592
|
+
* @param {string} endDate 2020-05-23
|
|
593
|
+
* @param {number} offset 3
|
|
585
594
|
*/
|
|
586
|
-
const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
595
|
+
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, }) => {
|
|
587
596
|
const __root = (0, exports.root)();
|
|
588
597
|
const __queries = Object.entries({
|
|
589
598
|
stations,
|
|
@@ -606,6 +615,9 @@ const searchListingsByMultipleConditions = ({ stations, prefecture, cities, keyw
|
|
|
606
615
|
maxMinuteWalk,
|
|
607
616
|
listingSaleType,
|
|
608
617
|
locale,
|
|
618
|
+
startDate,
|
|
619
|
+
endDate,
|
|
620
|
+
offset,
|
|
609
621
|
})
|
|
610
622
|
.filter(([_, value]) => {
|
|
611
623
|
return value !== undefined;
|
|
@@ -640,8 +652,11 @@ exports.searchListingsByMultipleConditions.method = "GET";
|
|
|
640
652
|
* @param {number} maxMinuteWalk 5
|
|
641
653
|
* @param {string} listingSaleType onSale
|
|
642
654
|
* @param {string} locale ja
|
|
655
|
+
* @param {string} startDate 2020-04-02
|
|
656
|
+
* @param {string} endDate 2020-05-23
|
|
657
|
+
* @param {number} offset 3
|
|
643
658
|
*/
|
|
644
|
-
const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, }) => {
|
|
659
|
+
const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locationName, radius, keywordIds, layoutTypes, listingTypes, buildYearAfter, buildYearBefore, minSize, maxSize, minNumGuests, maxNumGuests, minCost, maxCost, page, itemsPerPage, reservationApprovalRequiredSetting, maxMinuteWalk, listingSaleType, locale, startDate, endDate, offset, }) => {
|
|
645
660
|
const __root = (0, exports.root)();
|
|
646
661
|
const __queries = Object.entries({
|
|
647
662
|
locationName,
|
|
@@ -663,6 +678,9 @@ const searchListingsWithRoomTypeByLocationNameAndMultipleConditions = ({ locatio
|
|
|
663
678
|
maxMinuteWalk,
|
|
664
679
|
listingSaleType,
|
|
665
680
|
locale,
|
|
681
|
+
startDate,
|
|
682
|
+
endDate,
|
|
683
|
+
offset,
|
|
666
684
|
})
|
|
667
685
|
.filter(([_, value]) => {
|
|
668
686
|
return value !== undefined;
|
|
@@ -1515,6 +1533,44 @@ const managerListingDeleteLocalizedData = ({ listingId, locale, }) => {
|
|
|
1515
1533
|
};
|
|
1516
1534
|
exports.managerListingDeleteLocalizedData = managerListingDeleteLocalizedData;
|
|
1517
1535
|
exports.managerListingDeleteLocalizedData.method = "DELETE";
|
|
1536
|
+
/**
|
|
1537
|
+
* リスティングの最低宿泊日数を取得する
|
|
1538
|
+
*
|
|
1539
|
+
*/
|
|
1540
|
+
const managerListingGetMinimumLengthOfStay = ({ listingId, }) => {
|
|
1541
|
+
const __root = (0, exports.root)();
|
|
1542
|
+
const __queries = Object.entries({})
|
|
1543
|
+
.filter(([_, value]) => {
|
|
1544
|
+
return value !== undefined;
|
|
1545
|
+
})
|
|
1546
|
+
.map(([key, value]) => {
|
|
1547
|
+
return `${key}=${value}`;
|
|
1548
|
+
})
|
|
1549
|
+
.join("&");
|
|
1550
|
+
const __path = `${__root}/${`manager/listings/${listingId}/minimum_length_of_stay`}`;
|
|
1551
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
1552
|
+
};
|
|
1553
|
+
exports.managerListingGetMinimumLengthOfStay = managerListingGetMinimumLengthOfStay;
|
|
1554
|
+
exports.managerListingGetMinimumLengthOfStay.method = "GET";
|
|
1555
|
+
/**
|
|
1556
|
+
* リスティングの最低宿泊日数を更新する
|
|
1557
|
+
*
|
|
1558
|
+
*/
|
|
1559
|
+
const managerListingUpdateMinimumLengthOfStay = ({ listingId, }) => {
|
|
1560
|
+
const __root = (0, exports.root)();
|
|
1561
|
+
const __queries = Object.entries({})
|
|
1562
|
+
.filter(([_, value]) => {
|
|
1563
|
+
return value !== undefined;
|
|
1564
|
+
})
|
|
1565
|
+
.map(([key, value]) => {
|
|
1566
|
+
return `${key}=${value}`;
|
|
1567
|
+
})
|
|
1568
|
+
.join("&");
|
|
1569
|
+
const __path = `${__root}/${`manager/listings/${listingId}/minimum_length_of_stay`}`;
|
|
1570
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
1571
|
+
};
|
|
1572
|
+
exports.managerListingUpdateMinimumLengthOfStay = managerListingUpdateMinimumLengthOfStay;
|
|
1573
|
+
exports.managerListingUpdateMinimumLengthOfStay.method = "PUT";
|
|
1518
1574
|
/**
|
|
1519
1575
|
* idの配列を受け取りlistingのkeywordに一括追加する
|
|
1520
1576
|
*
|
|
@@ -3018,6 +3074,25 @@ const managerPaymentResolvePaymentOrderUnknownStatus = ({ paymentOrderId, }) =>
|
|
|
3018
3074
|
};
|
|
3019
3075
|
exports.managerPaymentResolvePaymentOrderUnknownStatus = managerPaymentResolvePaymentOrderUnknownStatus;
|
|
3020
3076
|
exports.managerPaymentResolvePaymentOrderUnknownStatus.method = "PUT";
|
|
3077
|
+
/**
|
|
3078
|
+
* 決済の有効無効を切り替える
|
|
3079
|
+
* @param {string} enabled false
|
|
3080
|
+
*/
|
|
3081
|
+
const managerPaymentHandlerTogglePaymentOrderEnabled = ({ enabled, paymentOrderId, }) => {
|
|
3082
|
+
const __root = (0, exports.root)();
|
|
3083
|
+
const __queries = Object.entries({ enabled })
|
|
3084
|
+
.filter(([_, value]) => {
|
|
3085
|
+
return value !== undefined;
|
|
3086
|
+
})
|
|
3087
|
+
.map(([key, value]) => {
|
|
3088
|
+
return `${key}=${value}`;
|
|
3089
|
+
})
|
|
3090
|
+
.join("&");
|
|
3091
|
+
const __path = `${__root}/${`manager/payment_orders/${paymentOrderId}/enabled`}`;
|
|
3092
|
+
return __queries ? `${__path}?${__queries}` : __path;
|
|
3093
|
+
};
|
|
3094
|
+
exports.managerPaymentHandlerTogglePaymentOrderEnabled = managerPaymentHandlerTogglePaymentOrderEnabled;
|
|
3095
|
+
exports.managerPaymentHandlerTogglePaymentOrderEnabled.method = "PATCH";
|
|
3021
3096
|
/**
|
|
3022
3097
|
* 決済取引を出力する
|
|
3023
3098
|
* @param {string} yearMonth 2021-09
|
|
@@ -3646,6 +3721,8 @@ exports.sumyca_v3 = {
|
|
|
3646
3721
|
managerListingCalendarSyncSettingsPut: exports.managerListingCalendarSyncSettingsPut,
|
|
3647
3722
|
mangerListingSearch: exports.mangerListingSearch,
|
|
3648
3723
|
managerListingDeleteLocalizedData: exports.managerListingDeleteLocalizedData,
|
|
3724
|
+
managerListingGetMinimumLengthOfStay: exports.managerListingGetMinimumLengthOfStay,
|
|
3725
|
+
managerListingUpdateMinimumLengthOfStay: exports.managerListingUpdateMinimumLengthOfStay,
|
|
3649
3726
|
managerListingPutKeyword: exports.managerListingPutKeyword,
|
|
3650
3727
|
managerListingPutKeywordRemove: exports.managerListingPutKeywordRemove,
|
|
3651
3728
|
managerSearchListingsByNameForManage: exports.managerSearchListingsByNameForManage,
|
|
@@ -3724,6 +3801,7 @@ exports.sumyca_v3 = {
|
|
|
3724
3801
|
managerPaymentUpdatePaymentOrderItem: exports.managerPaymentUpdatePaymentOrderItem,
|
|
3725
3802
|
managerPaymentDeletePaymentOrderItem: exports.managerPaymentDeletePaymentOrderItem,
|
|
3726
3803
|
managerPaymentResolvePaymentOrderUnknownStatus: exports.managerPaymentResolvePaymentOrderUnknownStatus,
|
|
3804
|
+
managerPaymentHandlerTogglePaymentOrderEnabled: exports.managerPaymentHandlerTogglePaymentOrderEnabled,
|
|
3727
3805
|
exportVeritransPaymentTransactions: exports.exportVeritransPaymentTransactions,
|
|
3728
3806
|
managerReservationCancel: exports.managerReservationCancel,
|
|
3729
3807
|
managerReservationChangeStaySpan: exports.managerReservationChangeStaySpan,
|
package/lib/makeFiles.d.ts
CHANGED
package/lib/makeFiles.js
CHANGED
|
@@ -9,9 +9,12 @@ const format_1 = require("./utils/format");
|
|
|
9
9
|
const makeName = (...args) => {
|
|
10
10
|
return args.filter(e => Boolean(e)).join('.');
|
|
11
11
|
};
|
|
12
|
-
const makeFiles = ({ repository, workspace, config, roots }) => {
|
|
12
|
+
const makeFiles = ({ repository, workspace, config, roots, exclude_periods }) => {
|
|
13
13
|
const files = [];
|
|
14
14
|
for (const [version, period] of Object.entries(repository.data)) {
|
|
15
|
+
if (exclude_periods === null || exclude_periods === void 0 ? void 0 : exclude_periods.includes(version)) {
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
15
18
|
const content = templates.files.endpoints({ repository, version, period, config, roots });
|
|
16
19
|
const basename = makeName(repository.name, workspace, version);
|
|
17
20
|
files.push({ version, basename });
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"2.
|
|
1
|
+
{"version":"2.7.0","commands":{"add":{"id":"add","description":"\nadd service to dependencies & make endpoints files.\n\n1. make endpoints.config.json for version control.\n\n{\n \"dependencies\": {\n \"service-name\": {\n \"version\": \"26177ed7e673daf0cc5a69e9793dd863424d272f\",\n \"repository\": \"git@github.com:[username/repository].git\"\n }\n }\n}\n\n> service name is inferred from Repository name.\n\n2. make src/endpoints/[service-name].ts\n","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"examples":["$ mes add [username/repository]","$ mes add [username/repository] --version [commmit hash]","$ mes add [username/repository] -v [commmit hash]","$ mes add [username/repository] -v latest","$ mes add [username/repository] --workspace [workspace directory]","$ mes add [username/repository] -w [workspace directory]","$ mes add [username/repository] --branch [branch name]","$ mes add [username/repository] -b [branch name]","$ mes add [username/repository] --excludes [period name]","$ mes add [username/repository] -e [period name]","$ mes add [username/repository] -e [period name] [period name]","$ mes add /Users/.../local-repository/","$ mes add ./local-repository","$ mes add git@github.com:[username/repository].git","$ mes add https://github.com/[username/repository].git"],"flags":{"version":{"name":"version","type":"option","char":"v","description":"latest or commit hash"},"workspace":{"name":"workspace","type":"option","char":"w","description":"a path to workspace containing .endpoints.json"},"branch":{"name":"branch","type":"option","char":"b","description":"branch name to clone"},"excludes":{"name":"excludes","type":"option","char":"e","description":"exclude periods"}},"args":[{"name":"repository"}]},"install":{"id":"install","description":"generate endpoints files based on endpoints.config.json","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"flags":{},"args":[]},"update":{"id":"update","description":"update service version & regenerate endpoints files","pluginName":"endpoints-sdk-cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"service"}]}}}
|
package/package.json
CHANGED