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AM,KACN,SAACE,EAAGC,GAAC,OAAMA,EAAI,GAAGrT,WAAWuT,SAAS,EAAG,IAAI,KA+BhD,EA3BgBC,IAAAA,EAAO,KAIrB,MAAG,CACF,QAAW,CAACC,aAAc,qBAAOC,MAAO,GACxC,OAAU,CAACD,aAAc,qBAAOC,MAAO,GACvC,UAAa,CAACD,aAAc,GAAIC,MAAO,KAGM,UAAG,CAChD,kBAAqB,2BACrB,YAAe,mDACf,eAAkB,4BAG2C,0BAAG,CAChE,kBAAqB,uCACrB,YAAe,+DACf,eAAkB,wCAGsC,qBAAG,CAC3D,kBAAqB,+FACrB,YAAe,yCACf,eAAkB,yC","sources":["Admins/Utils/UrlUtility.ts","Admins/Utils/ListUtility.ts","Admins/Navigator/NavigatorForAdminPageImpl.ts","Admins/Models/Announcement/DTO/AnnouncementDTO.ts","Admins/Models/Announcement/Repo/NetworkAnnouncementsRepo.ts","Admins/Models/Administrator/DTO/AdministratorDTO.ts","Admins/Models/Administrator/DTO/AdminSignboardInfoDTO.ts","Admins/Models/Member/DTO/MailMagazineDTO.ts","Admins/Models/Administrator/DTO/AdminBucketInfoDTO.ts","Admins/Models/Administrator/DTO/AdministratorInfomationDTO.ts","Admins/Models/Administrator/DTO/AdminBaseInfoDTO.ts","Admins/Models/Administrator/DTO/BucketAttributesDTO.ts","Admins/Models/Administrator/Repo/NetworkAdministratorRepo.ts","Common/SearchPostCodeImpl.ts","Admins/Models/Member/DTO/BucketMemberInfoDTO.ts","Admins/Models/Member/DTO/BucketInfoDTO.ts","Admins/Models/Member/DTO/MemberSearchResultDTO.ts","Admins/Models/Member/DTO/ContractHistoryDTO.ts","Admins/Models/Member/DTO/MembersBelongToBucketDTO.ts","Admins/Models/Member/DTO/MemberInfoDTO.ts","Admins/Models/Member/DTO/ShippingAddressInfoDTO.ts","Admins/Models/Member/DTO/CurrentMemberDenyAttributeDTO.ts","Admins/Models/Member/DTO/MemberDenyAttributeHistoryDTO.ts","Admins/Models/Member/DTO/DenyInfoDTO.ts","Admins/Models/Member/DTO/ExtendMetaDataDTO.ts","Admins/Models/Member/Repo/NetworkADMembersRepo.ts","Admins/Models/ExportData/DTO/ExportDataHistoryDTO.ts","Admins/Models/ExportData/DTO/ExportJobDownloadUrlDTO.ts","Admins/Models/ExportData/Repo/NetworkExportDataRepo.ts","Admins/Auth/AdminsAuthProvider.tsx","Admins/Models/MovieContent/DTO/MovieContentDTO.ts","Admins/Models/MovieContent/Repo/NetworkMovieContentsRepo.ts","Admins/Models/PhotoContent/DTO/UploadContentsURLDTO.ts","Admins/Models/PhotoContent/DTO/PhotoContentDTO.ts","Admins/Models/PhotoContent/Repo/NetworkPhotoContentsRepo.ts","Members/DTO/MemberMailMagazine.ts","Members/DTO/BucketContract.ts","Members/DTO/SignedUpSignboardDTO.ts","Members/Repo/NetworkMemberSignboardRepo.ts","Admins/Models/SideNavigation/Repo/NetworkSideNavigationRepo.ts","Admins/Models/Agreement/DTO/AdminAgreementDTO.ts","Admins/Models/Agreement/DTO/AdminAgreementDetailDTO.ts","Admins/Models/Agreement/Repo/NetworkAdminAgreementsRepo.ts","Admins/Models/Signboard/DTO/SimpleSignboardDTO.ts","Admins/Models/Signboard/DTO/SignboardDTO.ts","Admins/Models/Signboard/Repo/NetworkSignboardRepo.ts","App.tsx","Common/Constants.ts"],"sourcesContent":["export module UrlUtility {\n export const concatUrlAndQueryParams = (\n url: string,\n params: Record,\n ): string => {\n const queryString = Object.entries(params).map(([key, value]) => {\n return `${key}=${value}`\n }).join('&')\n\n return `${url}?${queryString}`\n }\n\n export const buildUrl = (\n item: { url: string, urlReplaceStyle: string }\n ): string => {\n if (item.urlReplaceStyle === 'cms') {\n const CMS_BASE_URL = process.env.REACT_APP_CMS_DOMAIN ?? ''\n const result = new URL(item.url, CMS_BASE_URL)\n return result.toString()\n }\n return item.url\n }\n}\n","import {MBAdminError} from './MBAdminError'\nimport {Optional} from '../../Common/TypeHelper'\n\nexport module ListUtility {\n export const findOne =(\n array: T[],\n predicate: (value: T, index: number, array: T[]) => unknown,\n ):Optional => {\n const filteredArray = array.filter(predicate)\n\n if (filteredArray.length > 1) {\n throw new MBAdminError('SystemError')\n }\n\n return filteredArray[0]\n }\n}\n","import {History, LocationState} from 'history'\nimport {NavigatorForAdminPage} from './NavigatorForAdminPage'\nimport {AdminAgreementDetail} from '../Models/Agreement/DTO/AdminAgreementDetailDTO'\nimport {AgreementRevisePageState, SystemAgreementRevisePageState} from '../Views/Pages/Agreements/AgreementRevisePage'\nimport {AgreementListPageState} from '../Views/Pages/Agreements/AgreementsListPage'\nimport {MemberSearchPageState} from \"../Views/Pages/Members/MemberSearchPage\";\n\nexport class NavigatorForAdminPageImpl implements NavigatorForAdminPage {\n\n private browserHistory: History\n\n constructor(browserHistory: History) {\n this.browserHistory = browserHistory\n }\n\n goToModeSelectionPage(): void {\n this.browserHistory.push('/admins/select_mode')\n }\n\n goToAdministratorsRegisterPage(): void {\n this.browserHistory.push('/admins/managers/create')\n }\n\n goToAdministratorsListPage(snackbarMessage?: string, highlightId?: number): void {\n this.browserHistory.push({\n pathname: '/admins/managers',\n state: {\n snackbarMessage: snackbarMessage,\n highlightId: highlightId,\n },\n })\n }\n\n goToAdministratorsEditPage(administratorId: number): void {\n this.browserHistory.push(`/admins/managers/${administratorId}`)\n }\n\n goToAdministratorsActivateCompletePage(): void {\n this.browserHistory.push('/admins/managers/activate/complete')\n }\n\n goToAdministratorsPasswordResetRequestedPage(): void {\n this.browserHistory.push('/admins/managers/password/reset/requested')\n }\n\n goToAdministratorsPasswordResetCompletePage(): void {\n this.browserHistory.push('/admins/managers/password/reset/complete')\n }\n\n goToFanClubManagementTopPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/top`)\n }\n\n goToAnnouncementsRegisterPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/announcements/create`)\n }\n\n goToAnnouncementsListPage(\n bucketKey: string,\n registeredAnnouncementId?: number,\n updatedAnnouncementId?: number,\n ): void {\n this.browserHistory.push({\n pathname: `/admins/${bucketKey}/announcements`,\n state: {\n registeredAnnouncementId: registeredAnnouncementId,\n updatedAnnouncementId: updatedAnnouncementId,\n },\n })\n }\n\n goToAnnouncementsEditPage(bucketKey: string, announcementId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/announcements/${announcementId}/edit`)\n }\n\n goToMovieContentsRegisterPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/movies/create`)\n }\n\n goToMovieContentsListPage(\n bucketKey: string,\n registeredMovieContentId?: number,\n updatedMovieContentId?: number,\n ): void {\n this.browserHistory.push({\n pathname: `/admins/${bucketKey}/movies`,\n state: {\n registeredMovieContentId: registeredMovieContentId,\n updatedMovieContentId: updatedMovieContentId,\n },\n })\n }\n\n goToMovieContentsEditPage(bucketKey: string, movieContentId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/movies/${movieContentId}/edit`)\n }\n\n goToPhotoContentsRegisterPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/photos/create`)\n }\n\n goToPhotoContentsListPage(\n bucketKey: string,\n registeredPhotoContentId?: number,\n updatedPhotoContentId?: number,\n ): void {\n this.browserHistory.push({\n pathname: `/admins/${bucketKey}/photos`,\n state: {\n registeredPhotoContentId: registeredPhotoContentId,\n updatedPhotoContentId: updatedPhotoContentId,\n },\n })\n }\n\n goToPhotoContentsEditPage(bucketKey: string, photoContentId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/photos/${photoContentId}/edit`)\n }\n\n goToSearchMembersPage(bucketKey: string, snackbarMessage?: string): void {\n const status: MemberSearchPageState = {snackbarMessage}\n this.browserHistory.push(`/admins/${bucketKey}/members_search`, status)\n }\n\n goToMemberDetailInfoPage(bucketKey: string, memberId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/members_search/${memberId}`)\n }\n\n\n goToMemberContractHistoryPage(bucketKey: string, memberId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/members_search/${memberId}/contract_history`)\n }\n\n goToMemberDenyAttributeHistoryPage(\n bucketKey: string,\n memberId: number,\n registeredId?: number,\n ): void {\n this.browserHistory.push({\n pathname: `/admins/${bucketKey}/members_search/${memberId}/deny_attribute_history`,\n state: {registeredId},\n })\n }\n\n goToMemberDenyAttributeEditPage(bucketKey: string, memberId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/members_search/${memberId}/deny_attribute/edit`)\n }\n\n goToBucketSettingPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/setting`)\n }\n\n goToSystemAgreementDetailPage(agreementId: number): void {\n this.browserHistory.push(`/admins/agreements/${agreementId}`)\n }\n\n goToAgreementDetailPage(bucketKey: string, agreementId: number): void {\n this.browserHistory.push(`/admins/${bucketKey}/setting/agreements/${agreementId}`)\n }\n\n goToActiveAgreementPage(bucketKey: string): void {\n this.browserHistory.push(`/admins/${bucketKey}/setting/agreements/active`)\n }\n\n goToSystemAgreementListPage(snackbarMessage?: string, highlightId?: number): void {\n const state: AgreementListPageState = {snackbarMessage, highlightId}\n this.browserHistory.push('/admins/agreements', state)\n }\n\n goToAgreementListPage(bucketKey: string, snackbarMessage?: string, highlightId?: number): void {\n const state: AgreementListPageState = {snackbarMessage, highlightId}\n this.browserHistory.push(`/admins/${bucketKey}/setting/agreements`, state)\n }\n\n goToSystemAgreementRevisePage(agreement: AdminAgreementDetail): void {\n const state: SystemAgreementRevisePageState = {agreement}\n this.browserHistory.push(`/admins/agreements/${agreement.id}/revise`, state)\n }\n\n goToAgreementRevisePage(bucketKey: string, agreement: AdminAgreementDetail): void {\n const state: AgreementRevisePageState = {\n agreement, pathnameFrom: this.browserHistory.location.pathname,\n }\n this.browserHistory.push(`/admins/${bucketKey}/setting/agreements/revise`, state)\n }\n\n goToDownloadPage(downloadUrl: string): void {\n location.href = downloadUrl\n }\n\n goToLogoutPage(): void {\n this.browserHistory.push('/admins/logout')\n }\n\n gotoUrl(path: string): void {\n this.browserHistory.push({pathname: path})\n }\n\n clearState(): void {\n this.browserHistory.replace({state: {}})\n }\n\n gotoSignboardListPage(snackbarMessage?: string, highlightId?: number): void {\n this.browserHistory.push({\n pathname: '/admins/signboards',\n state: {\n snackbarMessage: snackbarMessage,\n highlightId: highlightId,\n },\n })\n }\n\n gotoSignboardRegisterPage(): void {\n this.browserHistory.push(`/admins/signboards/register`)\n }\n\n gotoSignboardDuplicatePage(signboardId: number): void {\n this.browserHistory.push(`/admins/signboards/register?ref=${signboardId}`)\n }\n\n gotoSignboardDetailPage(signboardId: number): void {\n this.browserHistory.push(`/admins/signboards/${signboardId}`)\n }\n\n}\n","import {Nullable} from '../../../../Common/TypeHelper'\n\nexport type Announcement = {\n title: string\n content: string\n publishDate: string\n publishDateTime: string\n publishEndDate: string\n publishEndDateTime: string\n publishEndDateCheck: boolean\n}\n\nexport interface AnnouncementJSON {\n id: number\n bucketKey: string\n title: string\n content: string\n publishDate: string\n publishEndDate: Nullable\n}\n\nclass AnnouncementDTO {\n id: number\n bucketKey: string\n title: string\n content: string\n publishDate: string\n publishEndDate: Nullable\n\n\n constructor(\n id: number,\n bucketKey: string,\n title: string,\n content: string,\n publishDate: string,\n publishEndDate: Nullable,\n ) {\n this.id = id\n this.bucketKey = bucketKey\n this.title = title\n this.content = content\n this.publishDate = publishDate\n this.publishEndDate = publishEndDate\n }\n\n static fromJSON(jsonObject: AnnouncementJSON): AnnouncementDTO {\n return new AnnouncementDTO(\n jsonObject.id,\n jsonObject.bucketKey,\n jsonObject.title,\n jsonObject.content,\n jsonObject.publishDate,\n jsonObject.publishEndDate,\n )\n }\n}\n\nexport default AnnouncementDTO\n","import AnnouncementsRepo from './AnnouncementsRepo'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport AnnouncementDTO, {AnnouncementJSON} from '../DTO/AnnouncementDTO'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport NewAnnouncementDTO from '../DTO/NewAnnouncementDTO'\nimport UpdateAnnouncementDTO from '../DTO/UpdateAnnouncementDTO'\n\nclass NetworkAnnouncementsRepo implements AnnouncementsRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n create(\n newAnnouncement: NewAnnouncementDTO,\n ): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/announcements`,\n DTO.toObject(newAnnouncement),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) => {\n return CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT\n )\n })\n }\n\n getList(bucketKey: string): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/announcements?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n AnnouncementDTO.fromJSON,\n )\n })\n }\n\n getAnnouncement(id: number): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/announcements/${id}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AnnouncementDTO.fromJSON,\n )\n })\n }\n\n putAnnouncement(\n id: number,\n updateAnnouncement: UpdateAnnouncementDTO\n ): Promise>> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/announcements/${id}`,\n DTO.toObject(updateAnnouncement),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) => {\n return CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n )\n })\n }\n\n}\n\nexport default NetworkAnnouncementsRepo\n","export interface bucketListItem {\n bucketKey: string\n name: string\n}\n\nexport interface AdministratorJSON {\n id: number\n name: string\n kana: string\n mail: string\n bucketList: bucketListItem[]\n isSystemAdministrator: boolean\n}\n\nexport interface Administrator {\n id: number\n name: string\n kana: string\n mail: string\n bucketList: bucketListItem[]\n isSystemAdministrator: boolean\n}\n\nexport class AdministratorDTO implements Administrator {\n id: number\n name: string\n kana: string\n mail: string\n bucketList: bucketListItem[]\n isSystemAdministrator: boolean\n\n constructor(\n id: number,\n name: string,\n kana: string,\n mail: string,\n bucketList: bucketListItem[],\n isSystemAdministrator: boolean,\n ) {\n this.id = id\n this.name = name\n this.kana = kana\n this.mail = mail\n this.bucketList = bucketList\n this.isSystemAdministrator = isSystemAdministrator\n }\n\n static fromJSON(jsonObject: AdministratorJSON): AdministratorDTO {\n return new AdministratorDTO(\n jsonObject.id,\n jsonObject.name,\n jsonObject.kana,\n jsonObject.mail,\n jsonObject.bucketList,\n jsonObject.isSystemAdministrator,\n )\n }\n}\n","import {AdminBucketInfo, AdminBucketInfoDTO, AdminBucketInfoJSON} from \"./AdminBucketInfoDTO\";\n\nexport interface AdminSignboardInfo {\n signboardId: number\n signupKey: string\n signupName: string\n bucketList?: AdminBucketInfo[]\n urlList?: AdminSignboardUrl[]\n}\n\nexport type AdminSignboardUrl = {\n type: string\n url: string\n urlReplaceStyle: string\n name: string\n}\n\nexport interface AdminSignboardInfoJSON {\n signboardId: number\n signupKey: string\n signupName: string\n bucketList?: AdminBucketInfoJSON[]\n urlList?: AdminSignboardUrl[]\n}\n\nexport class AdminSignboardInfoDTO implements AdminSignboardInfo {\n constructor(\n public signboardId: number,\n public signupKey: string,\n public signupName: string,\n public bucketList?: AdminBucketInfo[],\n public urlList?: AdminSignboardUrl[],\n ) {\n }\n\n static fromJSON(jsonObject: AdminSignboardInfoJSON): AdminSignboardInfoDTO {\n return new AdminSignboardInfoDTO(\n jsonObject.signboardId,\n jsonObject.signupKey,\n jsonObject.signupName,\n jsonObject.bucketList?.map(item => ({...AdminBucketInfoDTO.fromJSON(item)})),\n jsonObject.urlList,\n )\n }\n}\n","export interface MailMagazine {\n id: number\n name: string\n}\n\nexport interface MailMagazineJSON {\n id: number\n name: string\n}\n\nexport class MailMagazineDTO implements MailMagazine {\n id: number\n name: string\n\n constructor(id: number, name: string) {\n this.id = id\n this.name = name\n }\n\n static fromJSON(jsonObject: MailMagazineJSON): MailMagazineDTO {\n return new MailMagazineDTO(\n jsonObject.id,\n jsonObject.name,\n )\n }\n}\n","import {ListUtility} from '../../../Utils/ListUtility'\nimport {AdminSignboardInfo, AdminSignboardInfoDTO, AdminSignboardInfoJSON} from \"./AdminSignboardInfoDTO\"\nimport {MailMagazine, MailMagazineDTO, MailMagazineJSON} from \"../../Member/DTO/MailMagazineDTO\"\nimport {Nullable} from \"../../../../Common/TypeHelper\"\nimport {UrlUtility} from \"../../../Utils/UrlUtility\"\n\nexport interface AdminBucketInfo {\n id: number\n bucketKey: string\n name: string\n logoImgUrl?: string\n shopId?: Nullable\n mailMagazineList?: MailMagazine[]\n urlList?: AdminBucketUrl[]\n signboardList?: AdminSignboardInfo[]\n dependOnList?: AdminBucketHeader[]\n requiredByList?: AdminBucketHeader[]\n}\n\nexport type AdminBucketUrl = {\n type: string\n url: string\n urlReplaceStyle: string\n name: string\n}\n\nexport type AdminBucketHeader = {\n id: number\n bucketKey: string\n name: string\n}\n\nexport interface AdminBucketInfoJSON {\n id: number\n bucketKey: string\n name: string\n shopId?: Nullable\n mailMagazineList?: MailMagazineJSON[]\n urlList?: AdminBucketUrl[]\n signboardList?: AdminSignboardInfoJSON[]\n dependOnList?: AdminBucketHeader[]\n requiredByList?: AdminBucketHeader[]\n}\n\nexport class AdminBucketInfoDTO implements AdminBucketInfo {\n id: number\n bucketKey: string\n name: string\n logoImgUrl?: string\n shopId?: Nullable\n mailMagazineList?: MailMagazine[]\n urlList?: AdminBucketUrl[]\n signboardList?: AdminSignboardInfo[]\n dependOnList?: AdminBucketHeader[]\n requiredByList?: AdminBucketHeader[]\n\n constructor(\n id: number,\n bucketKey: string,\n name: string,\n logoImgUrl?: string,\n shopId?: Nullable,\n mailMagazineList?: MailMagazine[],\n urlList?: AdminBucketUrl[],\n signboardList?: AdminSignboardInfo[],\n dependOnList?: AdminBucketHeader[],\n requiredByList?: AdminBucketHeader[],\n ) {\n this.id = id\n this.bucketKey = bucketKey\n this.name = name\n this.logoImgUrl = logoImgUrl\n this.shopId = shopId\n this.mailMagazineList = mailMagazineList\n this.urlList = urlList\n this.signboardList = signboardList\n this.dependOnList = dependOnList\n this.requiredByList = requiredByList\n }\n\n static fromJSON(jsonObject: AdminBucketInfoJSON): AdminBucketInfoDTO {\n const logoImgUrl = ListUtility.findOne(\n jsonObject.urlList || [],\n item => item.type === 'logoImg',\n )\n\n return new AdminBucketInfoDTO(\n jsonObject.id,\n jsonObject.bucketKey,\n jsonObject.name,\n logoImgUrl ? UrlUtility.buildUrl(logoImgUrl) : undefined,\n jsonObject.shopId,\n jsonObject.mailMagazineList?.map(item => ({...MailMagazineDTO.fromJSON(item)})),\n jsonObject.urlList,\n jsonObject.signboardList?.map(item => ({...AdminSignboardInfoDTO.fromJSON(item)})),\n jsonObject.dependOnList,\n jsonObject.requiredByList,\n )\n }\n}\n","import {ListUtility} from '../../../Utils/ListUtility'\nimport {UrlUtility} from \"../../../Utils/UrlUtility\"\n\ninterface bucketListItemJSON {\n id: number\n bucketKey: string\n name: string\n urlList: bucketUrl[]\n}\n\ntype bucketUrl = {\n type: string\n url: string\n urlReplaceStyle: string\n}\n\nexport interface BucketListItem {\n id: number\n bucketKey: string\n name: string\n logoImgUrl: string\n}\n\nexport interface AdministratorInformationJSON {\n bucketList: bucketListItemJSON[]\n isSystemAdministrator: boolean\n}\n\nexport interface AdministratorInformation {\n bucketList: BucketListItem[]\n isSystemAdministrator: boolean\n}\n\nexport class AdministratorInformationDTO implements AdministratorInformation {\n bucketList: BucketListItem[]\n isSystemAdministrator: boolean\n\n constructor(\n bucketList: BucketListItem[],\n isSystemAdministrator: boolean,\n ) {\n this.bucketList = bucketList\n this.isSystemAdministrator = isSystemAdministrator\n }\n\n static fromJSON(jsonObject: AdministratorInformationJSON): AdministratorInformationDTO {\n const filteredBucketList: BucketListItem[] = []\n jsonObject.bucketList.forEach((bucket) => {\n const filteredLogoImg = ListUtility.findOne(\n bucket.urlList || [],\n item => item.type === 'logoImg',\n )\n\n filteredBucketList.push({\n id: bucket.id,\n bucketKey: bucket.bucketKey,\n name: bucket.name,\n logoImgUrl: filteredLogoImg ? UrlUtility.buildUrl(filteredLogoImg) : '',\n })\n })\n\n return new AdministratorInformationDTO(\n filteredBucketList,\n jsonObject.isSystemAdministrator,\n )\n }\n}\n","export interface AdminBaseInfoJSON {\n id: number\n name: string\n kana: string\n mail: string\n}\n\nexport interface AdminBaseInfo {\n id: number\n name: string\n kana: string\n mail: string\n}\n\nexport class AdminBaseInfoDTO implements AdminBaseInfo {\n id: number\n name: string\n kana: string\n mail: string\n\n constructor(\n id: number,\n name: string,\n kana: string,\n mail: string,\n ) {\n this.id = id\n this.name = name\n this.kana = kana\n this.mail = mail\n }\n\n static fromJSON(jsonObject: AdminBaseInfoJSON): AdminBaseInfoDTO {\n return new AdminBaseInfoDTO(\n jsonObject.id,\n jsonObject.name,\n jsonObject.kana,\n jsonObject.mail,\n )\n }\n}\n","import {ContractMethod} from '../../Member/DTO/BucketMemberInfoDTO'\n\nexport type BucketAttributesJSON = BucketAttributes\n\nexport interface BucketAttributes {\n contractMethodList: ContractMethod[]\n isInUseBucketMemberId: boolean\n}\n\nexport class BucketAttributesDTO implements BucketAttributes {\n contractMethodList: ContractMethod[]\n isInUseBucketMemberId: boolean\n\n constructor(contractMethodList: ContractMethod[], isInUseBucketMemberId: boolean) {\n this.contractMethodList = contractMethodList\n this.isInUseBucketMemberId = isInUseBucketMemberId\n }\n\n static fromJSON(jsonObject: BucketAttributesJSON): BucketAttributesDTO {\n return new BucketAttributesDTO(\n jsonObject.contractMethodList,\n jsonObject.isInUseBucketMemberId,\n )\n }\n}\n","import AdministratorRepo from './AdministratorRepo'\nimport {AdministratorDTO, AdministratorJSON} from '../DTO/AdministratorDTO'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport NewAdministratorDTO from '../DTO/NewAdministratorDTO'\nimport UpdateAdministratorDTO from \"../DTO/UpdateAdministratorDTO\"\nimport AdministratorsPasswordDTO from '../DTO/AdministratorsPasswordDTO'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {AdminBucketInfoDTO, AdminBucketInfoJSON} from '../DTO/AdminBucketInfoDTO'\nimport {AdministratorInformationDTO, AdministratorInformationJSON} from '../DTO/AdministratorInfomationDTO'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {AdminBaseInfoDTO, AdminBaseInfoJSON} from '../DTO/AdminBaseInfoDTO'\nimport {BucketAttributesDTO, BucketAttributesJSON} from '../DTO/BucketAttributesDTO'\n\nclass NetworkAdministratorRepo implements AdministratorRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n create(newAdministratorDTO: NewAdministratorDTO): Promise>> {\n return this.fetchWrapper.postJson(`${this.serverUrl}/v1/a/r/managers`,\n DTO.toObject(newAdministratorDTO), withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n getList(): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/managers`, withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n AdministratorDTO.fromJSON,\n )\n })\n }\n\n getAdministratorInfo(\n administratorId: number\n ): Promise>> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/managers/${administratorId}`,\n withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AdministratorDTO.fromJSON,\n )\n })\n }\n\n update(\n administratorId: number,\n updateAdministratorDTO: UpdateAdministratorDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(`${this.serverUrl}/v1/a/r/managers/${administratorId}`,\n DTO.toObject(updateAdministratorDTO), withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n delete(\n administratorId: number,\n ): Promise> {\n return this.fetchWrapper.deleteJson(`${this.serverUrl}/v1/a/r/managers/${administratorId}`,\n withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n getAdminInfo(oneTimeToken: string): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/p/managers?one_time_token=${oneTimeToken}`)\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AdminBaseInfoDTO.fromJSON,\n )\n })\n }\n\n registerPassword(\n administratorsPasswordDTO: AdministratorsPasswordDTO,\n ): Promise>> {\n return this.fetchWrapper.postJson(`${this.serverUrl}/v1/a/p/managers/activate`,\n DTO.toObject(administratorsPasswordDTO),\n ).then((response: CommonResponseJSON>) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n requestPasswordResetForSystemAdmin(\n administratorId: number,\n ): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/managers/${administratorId}/password/reset`,\n {},\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n requestPasswordReset(\n mail: string,\n ): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/p/managers/password/reset`,\n {\n mail: mail,\n },\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n getPasswordResetInfo(\n oneTimeToken: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/p/managers/password/reset/${oneTimeToken}`,\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AdminBaseInfoDTO.fromJSON,\n )\n })\n }\n\n completePasswordReset(\n oneTimeToken: string,\n password: string,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/p/managers/password/reset/${oneTimeToken}`,\n {\n password: password\n },\n ).then((response: CommonResponseJSON) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n getAdminBucketInfoList(): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/buckets`, withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n AdminBucketInfoDTO.fromJSON,\n )\n })\n }\n\n getInformation(): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/managers/self`, withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AdministratorInformationDTO.fromJSON,\n )\n })\n }\n\n getAdminBucketInfo(bucketKey: string): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/buckets/${bucketKey}`,\n withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n AdminBucketInfoDTO.fromJSON,\n )\n })\n }\n\n getBucketAttributes(\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/buckets/${bucketKey}/attributes`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n BucketAttributesDTO.fromJSON,\n )\n })\n }\n\n postLogout(): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/managers/self/logout`,\n {},\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.ofNullData(response),\n )\n }\n}\n\nexport default NetworkAdministratorRepo\n","import {SearchPostCode} from './SearchPostCode'\nimport {Core as PostCodeCore} from 'yubinbango-core2'\n\nexport class SearchPostCodeImpl implements SearchPostCode {\n // eslint-disable-next-line max-len\n // eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/explicit-module-boundary-types\n search(postCode: string, callBack: any): void {\n\n new PostCodeCore(postCode, callBack)\n\n }\n}\n","import {Nullable, Optional} from '../../../../Common/TypeHelper'\nimport {MBAdminError} from '../../../Utils/MBAdminError'\nimport {Contract} from '../../../Utils/Resources'\n\nexport type CreditCardInfoJSON = {\n cardId: string,\n cardNumber: string,\n expireDate: string\n}\n\nexport type BucketMemberInfoJSON = {\n contract: {\n now: Nullable\n next: Nullable\n }\n} & Pick\n\nexport type LeaveInfo = {\n leaveOrderDate: Nullable,\n leaveDate: Nullable,\n bucketLeaveReason: Nullable,\n}\n\nexport type MainContract = {\n bucketMemberId: Nullable,\n startDate: string,\n executionDateTime: string,\n enrollmentReason: Nullable,\n}\n\nexport type ContractInfoJson = Omit &\n {\n paymentMethodDetail: PaymentMethodDetailJson,\n method: ContractMethod,\n type: Contract.ContractTypeType\n }\n\ntype PaymentMethodDetailJson = Partial\n\nexport type ContractInfo = {\n executionDate: string,\n sourceType: Contract.SourceTypeType,\n status: Contract.StatusType,\n bucketId: number,\n bucketKey: string,\n bucketName: string,\n bucketMemberId: Nullable,\n amount: number,\n startDate: string,\n endDate: string,\n term: string,\n contractMethod: CreditCardMethod | MobileCarrierMethod | ConvenienceStoreMethod | FreeBucketMethod\n contractType: Contract.ContractTypeType\n mainContractId: string\n contractId: string\n gmoOrderId: Nullable\n}\n\nexport type ContractMethod = 'credit_card' | 'mobile_carrier' | 'convenience_store' | 'none'\n\nexport type CreditCardMethod = {\n method: 'credit_card'\n paymentMethodDetail: CreditCardInfo\n}\n\nexport type MobileCarrierMethod = {\n method: 'mobile_carrier'\n paymentMethodDetail: MobileCarrierInfo\n}\n\nexport type ConvenienceStoreMethod = {\n method: 'convenience_store'\n paymentMethodDetail: ConvenienceStoreInfo\n}\n\nexport type FreeBucketMethod = {\n method: 'none',\n paymentMethodDetail: null\n}\n\nexport type CreditCardInfo = CreditCardInfoJSON\n\nexport type MobileCarrierKey = 'docomo' | 'softbank' | 'au'\n\nexport type MobileCarrierInfo = {\n carrierKey: Optional\n}\n\nexport type ConvenienceStoreKey =\n 'lawson' |\n 'familymart' |\n 'ministop' |\n 'seicomart' |\n ''\n\nexport type ConvenienceStoreInfo = {\n convenienceStoreKey: ConvenienceStoreKey\n paymentTerm: string\n}\n\nexport interface BucketMemberInfo {\n leaveInfo: LeaveInfo\n mainContract: MainContract\n contract: {\n now: Nullable\n next: Nullable\n }\n stage: Nullable\n subscribeMailMagazineIdList: number[]\n}\n\nexport type Stage = {\n rank: number\n name: string\n}\n\nexport class BucketMemberInfoDTO implements BucketMemberInfo {\n leaveInfo: LeaveInfo\n mainContract: MainContract\n contract: {\n now: Nullable\n next: Nullable\n }\n stage: Nullable\n subscribeMailMagazineIdList: number[]\n\n constructor(\n leaveInfo: LeaveInfo,\n mainContract: MainContract,\n contract: { now: Nullable; next: Nullable },\n stage: Nullable,\n subscribeMailMagazineIdList: number[],\n ) {\n this.leaveInfo = leaveInfo\n this.mainContract = mainContract\n this.contract = contract\n this.stage = stage\n this.subscribeMailMagazineIdList = subscribeMailMagazineIdList\n }\n\n static fromJSON(jsonObject: BucketMemberInfoJSON): BucketMemberInfoDTO {\n return new BucketMemberInfoDTO(\n jsonObject.leaveInfo,\n jsonObject.mainContract,\n {\n now: getContract(jsonObject.contract.now),\n next: getContract(jsonObject.contract.next),\n },\n jsonObject.stage,\n jsonObject.subscribeMailMagazineIdList,\n )\n }\n}\n\nexport const getContract = (\n contractInfoJson: Nullable,\n): Nullable => {\n if (!contractInfoJson) {\n return null\n }\n\n const {method, paymentMethodDetail, type, ...rest} = contractInfoJson\n return {\n ...rest,\n contractMethod: getMethod(method, paymentMethodDetail),\n contractType: type,\n }\n}\n\nexport const getMethod = (method: ContractMethod, paymentMethodDetail: PaymentMethodDetailJson):\n CreditCardMethod | MobileCarrierMethod | ConvenienceStoreMethod | FreeBucketMethod => {\n if (method === 'credit_card') {\n return {\n method: 'credit_card',\n paymentMethodDetail: {\n cardId: paymentMethodDetail.cardId ?? '',\n cardNumber: paymentMethodDetail.cardNumber ?? '',\n expireDate: paymentMethodDetail.expireDate ?? '',\n },\n }\n }\n\n if (method === 'mobile_carrier') {\n return {\n method: 'mobile_carrier',\n paymentMethodDetail: {\n carrierKey: paymentMethodDetail.carrierKey,\n },\n }\n }\n\n if (method === 'convenience_store') {\n return {\n method: 'convenience_store',\n paymentMethodDetail: {\n convenienceStoreKey: paymentMethodDetail.convenienceStoreKey ?? '',\n paymentTerm: paymentMethodDetail.paymentTerm ?? '',\n },\n }\n }\n\n if (method === 'none') {\n return {\n method: method,\n paymentMethodDetail: null,\n }\n }\n\n throw new MBAdminError('SystemError')\n}\n","import {Nullable, Optional} from '../../../../Common/TypeHelper'\nimport {MailMagazine, MailMagazineDTO, MailMagazineJSON} from './MailMagazineDTO'\nimport {PageUrlInfo, UrlListItem} from '../../Types'\nimport {ListUtility} from '../../../Utils/ListUtility'\n\nexport interface BucketInfoJSON {\n name: string\n mailMagazineList: MailMagazineJSON[]\n urlList: UrlListItem[]\n shopId: Nullable\n}\n\nexport interface BucketInfo {\n key: string\n name: string\n mailMagazineList: MailMagazine[]\n logoImg: Optional\n urlInfoList: PageUrlInfo[]\n shopId: Nullable\n}\n\nexport class BucketInfoDTO implements BucketInfo {\n key: string\n name: string\n mailMagazineList: MailMagazine[]\n logoImg: Optional\n urlInfoList: PageUrlInfo[]\n shopId: Nullable\n\n constructor(\n key: string,\n name: string,\n mailMagazineList: MailMagazine[],\n logoImg: Optional,\n urlInfoList: PageUrlInfo[],\n shopId: Nullable,\n ) {\n this.key = key\n this.name = name\n this.mailMagazineList = mailMagazineList\n this.logoImg = logoImg\n this.urlInfoList = urlInfoList\n this.shopId = shopId\n }\n\n static fromJSON(\n jsonObject: BucketInfoJSON & { key: string },\n ): Nullable {\n if (!jsonObject.name || !jsonObject.mailMagazineList) {\n return null\n }\n\n const filteredLogoImg = ListUtility.findOne(\n jsonObject.urlList || [],\n item => item.type === 'logoImg',\n )\n const logoImgUrl: Optional = filteredLogoImg?.url\n\n const urlInfoListWithoutLogo = jsonObject.urlList\n .filter(url => url.type !== 'logoImg')\n .map(url => ({\n url: url.url,\n name: url.name !== '' ? url.name : '未設定',\n }))\n\n return new BucketInfoDTO(\n jsonObject.key,\n jsonObject.name,\n jsonObject.mailMagazineList.map(item => ({...MailMagazineDTO.fromJSON(item)})),\n logoImgUrl,\n urlInfoListWithoutLogo,\n jsonObject.shopId,\n )\n }\n}\n","import {Nullable} from '../../../../Common/TypeHelper'\n\nexport type BucketMemberStatus = 'belong' | 'leaveReservation' | 'left' | 'ready' | 'expired'\n\nexport type MemberSearchParams = {\n bucketMemberId: Nullable,\n mail: string,\n name: string,\n kana: string,\n tel: string,\n inLeaveMember: boolean,\n}\n\nexport type MemberSummaryJSON = MemberSummary\n\nexport type MemberSummary = {\n id: number,\n bucketMemberId: Nullable,\n mail: string,\n familyName: string,\n firstName: string,\n familyNameKana: string,\n firstNameKana: string,\n phoneTel: string,\n phoneMobile: string,\n bucketStatus: BucketMemberStatus,\n}\n\nexport interface MemberSearchResultJson {\n count: number\n memberList: MemberSummaryJSON[]\n}\n\nexport interface MemberSearchResult {\n count: number\n memberList: MemberSummary[]\n}\n\nexport class MemberSearchResultDTO implements MemberSearchResult {\n count: number\n memberList: MemberSummary[]\n\n\n constructor(count: number, memberList: MemberSummary[]) {\n this.count = count\n this.memberList = memberList\n }\n\n static fromJSON(jsonObject: MemberSearchResultJson): MemberSearchResultDTO {\n return new MemberSearchResultDTO(\n jsonObject.count,\n jsonObject.memberList,\n )\n }\n}\n","import {ContractInfo, ContractInfoJson, getMethod} from './BucketMemberInfoDTO'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {Contract} from '../../../Utils/Resources'\n\nexport type ContractHistoryJSON = ContractInfoJson\n\nexport type ContractHistory = ContractInfo\n\nexport class ContractHistoryDTO implements ContractHistory {\n executionDate: string\n sourceType: Contract.SourceTypeType\n status: Contract.StatusType\n bucketId: number\n bucketKey: string\n bucketName: string\n bucketMemberId: Nullable\n amount: number\n startDate: string\n endDate: string\n term: string\n contractMethod: ContractInfo['contractMethod']\n contractType: Contract.ContractTypeType\n mainContractId: string\n contractId: string\n gmoOrderId: Nullable\n\n constructor(\n executionDate: string,\n sourceType: Contract.SourceTypeType,\n status: Contract.StatusType,\n bucketId: number,\n bucketKey: string,\n bucketName: string,\n bucketMemberId: Nullable,\n amount: number,\n startDate: string,\n endDate: string,\n term: string,\n contractMethod: ContractInfo['contractMethod'],\n contractType: Contract.ContractTypeType,\n mainContractId: string,\n contractId: string,\n gmoOrderId: Nullable,\n ) {\n this.executionDate = executionDate\n this.sourceType = sourceType\n this.status = status\n this.bucketId = bucketId\n this.bucketKey = bucketKey\n this.bucketName = bucketName\n this.bucketMemberId = bucketMemberId\n this.amount = amount\n this.startDate = startDate\n this.endDate = endDate\n this.term = term\n this.contractMethod = contractMethod\n this.contractType = contractType\n this.mainContractId = mainContractId\n this.contractId = contractId\n this.gmoOrderId = gmoOrderId\n }\n\n static fromJSON(jsonObject: ContractHistoryJSON): ContractHistoryDTO {\n return new ContractHistoryDTO(\n jsonObject.executionDate,\n jsonObject.sourceType,\n jsonObject.status,\n jsonObject.bucketId,\n jsonObject.bucketKey,\n jsonObject.bucketName,\n jsonObject.bucketMemberId,\n jsonObject.amount,\n jsonObject.startDate,\n jsonObject.endDate,\n jsonObject.term,\n getMethod(jsonObject.method, jsonObject.paymentMethodDetail),\n jsonObject.type,\n jsonObject.mainContractId,\n jsonObject.contractId,\n jsonObject.gmoOrderId,\n )\n }\n}\n","export type MembersBelongToBucketJSON = {\n name: string\n bucketKey: string\n bucketMemberId: string\n signupDate: string\n stageRank?: number\n stageName?: string\n extensionParamKeyList?: string[]\n}\n\nexport type MembersBelongToBucket = Omit\n\nexport class MembersBelongToBucketDTO implements MembersBelongToBucket {\n constructor(\n public name: string,\n public bucketKey: string,\n public bucketMemberId: string,\n public signupDate: string,\n public stageRank?: number,\n public stageName?: string,\n ) {\n }\n\n static fromJSON(jsonObject: MembersBelongToBucketJSON): MembersBelongToBucketDTO {\n return new MembersBelongToBucketDTO(\n jsonObject.name,\n jsonObject.bucketKey,\n jsonObject.bucketMemberId,\n jsonObject.signupDate,\n jsonObject.stageRank,\n jsonObject.stageName,\n )\n }\n}\n","import {CreditCardInfo, CreditCardInfoJSON} from './BucketMemberInfoDTO'\nimport {ADDRESS, GENDER} from '../../../../Common/Constants'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {MembersBelongToBucket, MembersBelongToBucketDTO, MembersBelongToBucketJSON} from \"./MembersBelongToBucketDTO\";\n\nexport type MemberJSON = {\n id: number,\n mail: string,\n familyName: string,\n familyNameKana: string,\n firstName: string,\n firstNameKana: string,\n gender: Nullable,\n birthday: Nullable,\n phoneMobile: string,\n phoneTel: string,\n postCode: string,\n addressPrefectureCode: string,\n addressCity: string,\n addressStreet: string,\n addressBuilding: string,\n}\n\nexport type MemberInfoJSON = {\n member: MemberJSON\n creditCardInfoList: CreditCardInfoJSON[]\n bucketList: MembersBelongToBucketJSON[]\n accountCreationDatetime: string\n}\n\nexport type Member = Omit & {\n createdAt: string\n gender: string\n genderCode: string\n addressPrefecture: string\n}\n\nexport interface MemberInfo {\n member: Member\n creditCardInfoList: CreditCardInfo[]\n bucketList: MembersBelongToBucket[]\n}\n\nexport class MemberInfoDTO implements MemberInfo {\n member: Member\n creditCardInfoList: CreditCardInfo[]\n bucketList: MembersBelongToBucket[]\n\n constructor(\n member: Member,\n creditCardInfoList: CreditCardInfo[],\n bucketList: MembersBelongToBucket[]\n ) {\n this.member = member\n this.creditCardInfoList = creditCardInfoList\n this.bucketList = bucketList\n }\n\n static fromJSON(jsonObject: MemberInfoJSON): MemberInfoDTO {\n const {member, creditCardInfoList, bucketList} = jsonObject\n const {gender, birthday, addressPrefectureCode, ...rest} = member\n\n return new MemberInfoDTO(\n {\n ...rest,\n createdAt: jsonObject.accountCreationDatetime,\n gender: gender ? GENDER[gender] : '',\n genderCode: gender ? String(gender) : '',\n birthday: birthday ?? '',\n addressPrefecture: addressPrefectureCode ? ADDRESS.PREFECTURES[addressPrefectureCode] : '',\n addressPrefectureCode: addressPrefectureCode,\n },\n creditCardInfoList,\n bucketList.map(b => MembersBelongToBucketDTO.fromJSON(b)),\n )\n }\n}\n","import {ADDRESS} from \"../../../../Common/Constants\";\n\nexport type ShippingAddressInfoJSON = {\n shippingAddressId: number\n familyName: string\n firstName: string\n familyNameKana: string\n firstNameKana: string\n postCode: string\n addressPrefectureCode: string\n addressCity: string\n addressStreet: string\n addressBuilding: string\n phone: string\n}\n\nexport type ShippingAddressInfo = Pick &\n {\n addressPrefecture: string\n }\n\nexport class ShippingAddressInfoDTO implements ShippingAddressInfo {\n shippingAddressId: number\n familyName: string\n firstName: string\n familyNameKana: string\n firstNameKana: string\n postCode: string\n addressPrefecture: string\n addressPrefectureCode: string\n addressCity: string\n addressStreet: string\n addressBuilding: string\n phone: string\n\n constructor(shippingAddress: ShippingAddressInfo) {\n this.shippingAddressId = shippingAddress.shippingAddressId\n this.familyName = shippingAddress.familyName\n this.firstName = shippingAddress.firstName\n this.familyNameKana = shippingAddress.familyNameKana\n this.firstNameKana = shippingAddress.firstNameKana\n this.postCode = shippingAddress.postCode\n this.addressPrefecture = shippingAddress.addressPrefecture\n this.addressPrefectureCode = shippingAddress.addressPrefectureCode\n this.addressCity = shippingAddress.addressCity\n this.addressStreet = shippingAddress.addressStreet\n this.addressBuilding = shippingAddress.addressBuilding\n this.phone = shippingAddress.phone\n }\n\n static fromJSON(jsonObject: ShippingAddressInfoJSON): ShippingAddressInfoDTO {\n const {addressPrefectureCode, ...rest} = jsonObject\n\n return new ShippingAddressInfoDTO(\n {\n ...rest,\n addressPrefecture: ADDRESS.PREFECTURES[addressPrefectureCode],\n addressPrefectureCode: addressPrefectureCode,\n })\n }\n}\n","import {Nullable} from '../../../../Common/TypeHelper'\nimport {MemberJSON} from './MemberInfoDTO'\nimport {DenyInfo} from './DenyInfoDTO'\n\nexport type CurrentMemberDenyAttributeJSON = {\n extensionParamList: Nullable\n extensionParamAliasList: Nullable\n} & Pick\n\nexport interface CurrentMemberDenyAttribute {\n member: Pick\n realDenyInfoList: Nullable\n aliasDenyInfoList: Nullable\n comment: Nullable\n applyDate: Nullable\n}\n\nexport class CurrentMemberDenyAttributeDTO implements CurrentMemberDenyAttribute {\n member: Pick\n realDenyInfoList: Nullable\n aliasDenyInfoList: Nullable\n comment: Nullable\n applyDate: Nullable\n\n constructor(\n member: Pick,\n realDenyInfoList: Nullable,\n aliasDenyInfoList: Nullable,\n comment: Nullable,\n applyDate: Nullable,\n ) {\n this.member = member\n this.realDenyInfoList = realDenyInfoList\n this.aliasDenyInfoList = aliasDenyInfoList\n this.comment = comment\n this.applyDate = applyDate\n }\n\n static fromJSON(\n jsonObject: CurrentMemberDenyAttributeJSON,\n ): CurrentMemberDenyAttributeDTO {\n return new CurrentMemberDenyAttributeDTO(\n jsonObject.member,\n jsonObject.extensionParamList,\n jsonObject.extensionParamAliasList,\n jsonObject.comment,\n jsonObject.applyDate,\n )\n }\n}\n","import {DenyInfo} from './DenyInfoDTO'\n\nexport interface MemberDenyAttributeHistoryJSON {\n id: number\n extensionParamList: DenyInfo[]\n applyDate: string\n reporter: string\n comment: string\n}\n\nexport interface MemberDenyAttributeHistory {\n id: number\n denyInfoList: DenyInfo[]\n applyDate: string\n reporter: string\n comment: string\n}\n\nexport class MemberDenyAttributeHistoryDTO implements MemberDenyAttributeHistory {\n\n constructor(\n public id: number,\n public denyInfoList: DenyInfo[],\n public applyDate: string,\n public reporter: string,\n public comment: string,\n ) {\n }\n\n static fromJSON(jsonObject: MemberDenyAttributeHistoryJSON): MemberDenyAttributeHistoryDTO {\n return new MemberDenyAttributeHistoryDTO(\n jsonObject.id,\n jsonObject.extensionParamList,\n jsonObject.applyDate,\n jsonObject.reporter,\n jsonObject.comment,\n )\n }\n}\n","export type DenyInfoJSON = DenyInfo\n\nexport type DenyInfo = {\n key: string\n name: string\n}\n\nexport class DenyInfoDTO implements DenyInfo {\n constructor(public key: string, public name: string) {\n }\n\n static fromJSON(jsonObject: DenyInfoJSON): DenyInfoDTO {\n return new DenyInfoDTO(\n jsonObject.key,\n jsonObject.name,\n )\n }\n}\n\nexport type UnionDenyInfoJSON = UnionDenyInfo\n\nexport type UnionDenyInfo = DenyInfo & {\n id: number\n}\n\nexport class UnionDenyInfoDTO implements UnionDenyInfo {\n id: number\n key: string\n name: string\n\n constructor(id: number, key: string, name: string) {\n this.id = id\n this.key = key\n this.name = name\n }\n\n static fromJSON(jsonObject: UnionDenyInfoJSON): UnionDenyInfoDTO {\n return new UnionDenyInfoDTO(\n jsonObject.id,\n jsonObject.key,\n jsonObject.name,\n )\n }\n}\n","export type SingleSelectItem = {\n id: string\n type: 'singleSelect'\n label: string\n required: boolean\n requiredMessage?: string\n selected?: number\n options: { id: number, label: string }[]\n}\n\nexport type SingleTextItem = {\n id: string\n type: 'singleText'\n label: string\n required: boolean\n requiredMessage?: string\n value?: string\n size?: { min?: number, max?: number, message?: string }\n pattern?: { regexp?: string, message?: string }\n}\n\nexport type ExtendMetaDataItem = SingleSelectItem | SingleTextItem\n\nexport type ExtendMetaData = {\n header: string\n items: ExtendMetaDataItem[]\n description?: string\n}\n\nexport type ExtendMetaDataJSON = ExtendMetaData\n\nexport class ExtendMetaDataDTO implements ExtendMetaData {\n header: string\n items: ExtendMetaDataItem[]\n description?: string\n\n constructor(header: string, items: ExtendMetaDataItem[], description?: string) {\n this.header = header\n this.items = items\n this.description = description\n }\n\n static fromJSON(jsonObject: ExtendMetaDataJSON): ExtendMetaDataDTO {\n return new ExtendMetaDataDTO(\n jsonObject.header,\n jsonObject.items,\n jsonObject.description,\n )\n }\n}\n","import {ADMembersRepo} from './ADMembersRepo'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport {BucketMemberInfoDTO, BucketMemberInfoJSON} from '../DTO/BucketMemberInfoDTO'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {BucketInfoDTO, BucketInfoJSON} from '../DTO/BucketInfoDTO'\nimport {MemberSearchParams, MemberSearchResultDTO, MemberSearchResultJson} from '../DTO/MemberSearchResultDTO'\nimport {UrlUtility} from '../../../Utils/UrlUtility'\nimport {ContractHistoryDTO, ContractHistoryJSON} from '../DTO/ContractHistoryDTO'\nimport {MemberInfoDTO, MemberInfoJSON} from '../DTO/MemberInfoDTO'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {ShippingAddressInfoDTO, ShippingAddressInfoJSON} from '../DTO/ShippingAddressInfoDTO'\nimport {CurrentMemberDenyAttributeDTO, CurrentMemberDenyAttributeJSON} from '../DTO/CurrentMemberDenyAttributeDTO'\nimport {MemberDenyAttributeHistoryDTO, MemberDenyAttributeHistoryJSON} from '../DTO/MemberDenyAttributeHistoryDTO'\nimport {UpdateMemberDenyAttributeDTO} from '../DTO/UpdateMemberDenyAttributeDTO'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {DenyInfoDTO, DenyInfoJSON, UnionDenyInfoDTO, UnionDenyInfoJSON} from '../DTO/DenyInfoDTO'\nimport {GmoOrderIdDTO} from '../DTO/GmoOrderIdDTO'\nimport {ExtendMetaDataDTO, ExtendMetaDataJSON} from '../DTO/ExtendMetaDataDTO'\nimport {UpdateMemberBasicInfoDTO} from '../DTO/UpdateMemberBasicInfoDTO'\nimport {UpdateMemberAddressDTO} from '../DTO/UpdateMemberAddressDTO'\nimport {UpdateShippingAddressDTO} from '../DTO/UpdateShippingAddressDTO'\nimport {UpdateExtendMetaDataDTO} from '../DTO/UpdateExtendMetaDataDTO'\nimport {UpdateBucketOptionDTO} from '../DTO/UpdateBucketOptionDTO'\n\nexport class NetworkADMembersRepo implements ADMembersRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n getMembers(\n bucketKey: string,\n limit: number,\n params: MemberSearchParams,\n ): Promise>> {\n const queryParams = {\n bucket_key: bucketKey,\n limit: limit,\n bucket_member_id: params.bucketMemberId,\n mail: encodeURIComponent(params.mail),\n name: encodeURIComponent(params.name),\n kana: encodeURIComponent(params.kana),\n tel: params.tel,\n in_leave_member: params.inLeaveMember,\n }\n return this.fetchWrapper.getByJson(\n UrlUtility.concatUrlAndQueryParams(`${this.serverUrl}/v1/a/r/members`, queryParams),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n MemberSearchResultDTO.fromJSON,\n )\n })\n }\n\n getMemberInfo(memberId: number): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}`,\n withAdminsAuth(),\n )\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n MemberInfoDTO.fromJSON,\n )\n })\n }\n\n getBucketMemberInfoList(\n bucketKey: string,\n memberId: number,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/bucket_contract?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n BucketMemberInfoDTO.fromJSON,\n )\n })\n }\n\n getBucketInfo(\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/p/buckets/${bucketKey}`)\n .then(\n (response: CommonResponseJSON) => {\n const {status, data, errorMessageList} = response\n return CommonResponseDTO.from(\n {\n status: status,\n data: {...data, key: bucketKey},\n errorMessageList: errorMessageList,\n },\n BucketInfoDTO.fromJSON,\n )\n },\n )\n }\n\n getContractHistoryListByMemberId(\n bucketKey: string,\n memberId: number,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/contract_history?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n ContractHistoryDTO.fromJSON,\n )\n })\n }\n\n getShippingAddressInfoList(\n memberId: number,\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/shipping_addresses?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n ShippingAddressInfoDTO.fromJSON,\n )\n },\n )\n }\n\n getMemberExtendMetaData(\n memberId: number,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/extend_metadata`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n ExtendMetaDataDTO.fromJSON,\n )\n },\n )\n }\n\n getCurrentMemberDenyAttribute(\n memberId: number,\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/extension_params?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseDTO) => {\n return CommonResponseDTO.from(\n response,\n CurrentMemberDenyAttributeDTO.fromJSON,\n )\n })\n }\n\n getMemberDenyAttributeHistoryListByMemberId(\n memberId: number,\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/extension_params_history?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n MemberDenyAttributeHistoryDTO.fromJSON,\n )\n })\n }\n\n putMemberBasicInfo(\n memberId: number,\n updateMemberBasicInfoDTO: UpdateMemberBasicInfoDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/basic_info`,\n DTO.toObject(updateMemberBasicInfoDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n putMemberAddress(\n memberId: number,\n updateMemberAddressDTO: UpdateMemberAddressDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/address`,\n DTO.toObject(updateMemberAddressDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n postShippingAddress(\n memberId: number,\n updateShippingAddressInfoDTO: UpdateShippingAddressDTO,\n ): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/shipping_addresses`,\n DTO.toObject(updateShippingAddressInfoDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n putShippingAddress(\n memberId: number,\n shippingAddressId: number,\n updateShippingAddressInfoDTO: UpdateShippingAddressDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/shipping_addresses/${shippingAddressId}`,\n DTO.toObject(updateShippingAddressInfoDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n deleteShippingAddress(\n memberId: number,\n shippingAddressId: number,\n ): Promise> {\n return this.fetchWrapper.deleteJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/shipping_addresses/${shippingAddressId}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n putMemberExtendMetaData(\n memberId: number,\n updateExtendMetaDataDTO: UpdateExtendMetaDataDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/extend_metadata`,\n DTO.toObject(updateExtendMetaDataDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n putMemberBucketOption(\n memberId: number,\n bucketKey: string,\n updateBucketOptionDTO: UpdateBucketOptionDTO,\n ): Promise> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/bucket_options?bucket_key=${bucketKey}`,\n DTO.toObject(updateBucketOptionDTO),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n postMemberDenyAttribute(\n memberId: number,\n updateMemberDenyAttributeDto: UpdateMemberDenyAttributeDTO,\n ): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/extension_params`,\n DTO.toObject(updateMemberDenyAttributeDto),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) => {\n return CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n )\n })\n }\n\n getDenyAttributeList(bucketKey: string): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/${bucketKey}/extension_params`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n DenyInfoDTO.fromJSON,\n )\n })\n }\n\n getUnionDenyAttributeList(\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/${bucketKey}/union_extension_params`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n UnionDenyInfoDTO.fromJSON,\n )\n })\n }\n\n postReserveLeaveBucket(\n memberId: number,\n bucketKey: string,\n ): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/buckets/${bucketKey}/leave`,\n DTO.toObject({leaveMode: \"reserve\"}),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n postFailedMobileCarrierForcedLeave(\n memberId: number,\n bucketKey: string,\n gmoOrderId: GmoOrderIdDTO,\n ): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}/buckets/${bucketKey}/leave`,\n DTO.toObject({leaveMode: \"force\", ...gmoOrderId}),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n\n deleteMemberAccount(\n memberId: number\n ): Promise> {\n return this.fetchWrapper.deleteJson(\n `${this.serverUrl}/v1/a/r/members/${memberId}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n}\n","import dayjs from 'dayjs'\n\nexport type ExportDataHistoryJSON = ExportDataHistory\n\nexport type ExportJobType =\n 'exportMailMagazineSubscribers'\n | 'exportMembersPaymentHistory'\n | 'exportMembershipHistory'\n\nexport type ExportStatus =\n 'accepted' |\n 'started' |\n 'running' |\n 'succeeded' |\n 'error'\n\nexport type ExportConditionIndex =\n 'targetMailMagazineIdList' | 'excludeExtensionParamIdList' | 'fromDate' | 'toDate'\n\nexport type ExportCondition = {[key in ExportConditionIndex]? : number[] | string}\n\nexport type Executor = {\n id: number\n name: string\n}\n\nexport type ExportRequest = {\n datetime: dayjs.Dayjs\n condition: ExportCondition\n executor: Executor\n}\n\nexport type ExportResult = {\n fileName: string\n url: string\n total: number\n}\n\nexport interface ExportDataHistory {\n type: ExportJobType\n id: string\n bucketKey: string\n status: ExportStatus\n request: ExportRequest\n result: ExportResult\n}\n\nexport class ExportDataHistoryDTO implements ExportDataHistory {\n type: ExportJobType\n id: string\n bucketKey: string\n status: ExportStatus\n request: ExportRequest\n result: ExportResult\n\n constructor(\n type: ExportJobType,\n id: string,\n bucketKey: string,\n status: ExportStatus,\n request: ExportRequest,\n result: ExportResult,\n ) {\n this.type = type\n this.id = id\n this.bucketKey = bucketKey\n this.status = status\n this.request = request\n this.result = result\n }\n\n static fromJSON(jsonObject: ExportDataHistoryJSON): ExportDataHistoryDTO {\n const {datetime, ...rest} = jsonObject.request\n return new ExportDataHistoryDTO(\n jsonObject.type,\n jsonObject.id,\n jsonObject.bucketKey,\n jsonObject.status,\n {\n datetime: dayjs(datetime),\n ...rest,\n },\n jsonObject.result,\n )\n }\n}\n","export interface ExportJobDownloadUrl {\n downloadUrl: string\n}\n\nexport class ExportJobDownloadUrlDTO implements ExportJobDownloadUrl {\n downloadUrl: string\n\n constructor(downloadUrl: string) {\n this.downloadUrl = downloadUrl\n }\n\n static fromJSON(jsonObject: ExportJobDownloadUrl): ExportJobDownloadUrlDTO {\n return new ExportJobDownloadUrlDTO(\n jsonObject.downloadUrl,\n )\n }\n}\n","import {ExportDataRepo} from './ExportDataRepo'\nimport {\n ExportDataHistoryDTO,\n ExportDataHistoryJSON,\n ExportJobType\n} from '../DTO/ExportDataHistoryDTO'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {ExportJob} from '../DTO/ExportJobDTO'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {ExportJobDownloadUrlDTO} from '../DTO/ExportJobDownloadUrlDTO'\n\nexport class NetworkExportDataRepo implements ExportDataRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n postExportJob(\n exportJobType: ExportJobType,\n exportJob: ExportJob,\n ): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/${exportJobType}/jobs`,\n DTO.toObject(exportJob),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) => {\n return new CommonResponseDTO(\n response.status,\n response.data,\n response.errorMessageList,\n )\n })\n }\n\n getExportDataHistory(\n exportJobType: ExportJobType,\n exportJobId: string,\n executeLongPolling: boolean,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/${exportJobType}/jobs/${exportJobId}?long_polling=${executeLongPolling}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n ExportDataHistoryDTO.fromJSON,\n )\n })\n }\n\n getExportDataHistoryList(\n exportJobType: ExportJobType,\n bucketKey: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/${exportJobType}/jobs?bucketKey=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n ExportDataHistoryDTO.fromJSON,\n )\n })\n }\n\n getExportFileRedirectUrl(\n downloadUrl: string,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n downloadUrl,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n ExportJobDownloadUrlDTO.fromJSON\n )\n })\n }\n\n}\n","import React from 'react'\nimport {adminsMsalInstance} from './admins-msa'\nimport {CommonAuthProvider} from '../../Common/Components/CommonAuthProvider'\n\ntype AdminsAuthProviderProps = {\n children: React.ReactNode\n}\n\nexport const AdminsAuthProvider: React.VFC = (props) =>\n \n {props.children}\n \n\n","import {Nullable} from '../../../../Common/TypeHelper'\n\nexport type MovieContent = {\n title: string\n content: string\n publishDate: string\n publishDateTime: string\n publishEndDate: string\n publishEndDateTime: string\n publishEndDateCheck: boolean\n}\n\nexport interface MovieContentJSON {\n id: number\n bucketKey: string\n title: string\n content: string\n publishDate: string\n publishEndDate: Nullable\n}\n\nexport class MovieContentDTO implements MovieContentJSON {\n id: number\n bucketKey: string\n title: string\n content: string\n publishDate: string\n publishEndDate: Nullable\n\n\n constructor(\n id: number,\n bucketKey: string,\n title: string,\n content: string,\n publishDate: string,\n publishEndDate: Nullable,\n ) {\n this.id = id\n this.bucketKey = bucketKey\n this.title = title\n this.content = content\n this.publishDate = publishDate\n this.publishEndDate = publishEndDate\n }\n\n static fromJSON(jsonObject: MovieContentJSON): MovieContentDTO {\n return new MovieContentDTO(\n jsonObject.id,\n jsonObject.bucketKey,\n jsonObject.title,\n jsonObject.content,\n jsonObject.publishDate,\n jsonObject.publishEndDate,\n )\n }\n}\n","import MovieContentsRepo from './MovieContentsRepo'\nimport NewMovieContentDTO from '../DTO/NewMovieContentDTO'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {MovieContentDTO, MovieContentJSON} from '../DTO/MovieContentDTO'\nimport UpdateMovieContentDTO from '../DTO/UpdateMovieContentDTO'\n\nexport default class NetworkMovieContentsRepo implements MovieContentsRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n create(\n newMovieContent: NewMovieContentDTO,\n ): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/movies`,\n DTO.toObject(newMovieContent),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) =>\n CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n ))\n }\n\n getList(\n bucketKey: string,\n ): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/movies?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.fromArray(\n response,\n MovieContentDTO.fromJSON,\n ))\n }\n\n getById(\n id: number\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/movies/${id}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(\n response,\n MovieContentDTO.fromJSON,\n ))\n }\n\n update(\n id: number,\n updateMovieContent: UpdateMovieContentDTO,\n ): Promise>> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/movies/${id}`,\n DTO.toObject(updateMovieContent),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) =>\n CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n ))\n }\n\n}\n","export type UploadContentsURLJSON = UploadContentsURL\n\nexport interface UploadContentsURL {\n url: string\n}\n\nexport class UploadContentsURLDTO implements UploadContentsURL {\n url: string\n\n constructor(url: string) {\n this.url = url\n }\n\n static fromJSON(jsonObject: UploadContentsURLJSON): UploadContentsURLDTO {\n return new UploadContentsURLDTO(\n jsonObject.url,\n )\n }\n}\n","import {Nullable} from '../../../../Common/TypeHelper'\n\nexport type PhotoContent = {\n title: string\n file: string\n fileName: string\n publishDate: string\n publishDateTime: string\n publishEndDate: string\n publishEndDateTime: string\n publishEndDateCheck: boolean\n}\n\nexport interface PhotoContentJSON {\n id: number\n title: string\n url: string\n fileName: string\n publishDate: string\n publishEndDate: Nullable\n bucketKey: string\n}\n\nexport class PhotoContentDTO implements PhotoContentJSON {\n constructor(\n public id: number,\n public title: string,\n public url: string,\n public fileName: string,\n public publishDate: string,\n public publishEndDate: Nullable,\n public bucketKey: string,\n ) {\n }\n\n static fromJSON(jsonObject: PhotoContentJSON): PhotoContentDTO {\n return new PhotoContentDTO(\n jsonObject.id,\n jsonObject.title,\n jsonObject.url,\n jsonObject.fileName,\n jsonObject.publishDate,\n jsonObject.publishEndDate,\n jsonObject.bucketKey,\n )\n }\n\n}\n","import {PhotoContentsRepo} from './PhotoContentsRepo'\nimport {NewPhotoContentDTO} from '../DTO/NewPhotoContentDTO'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport {Nullable} from '../../../../Common/TypeHelper'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {DTO} from '../../../../Common/DtoUtilities'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {UploadPhotoFileDTO} from '../DTO/UploadPhotoFileDTO'\nimport {UploadContentsURLDTO, UploadContentsURLJSON} from '../DTO/UploadContentsURLDTO'\nimport {PhotoContentDTO, PhotoContentJSON} from '../DTO/PhotoContentDTO'\nimport {UpdatePhotoContentDTO} from '../DTO/UpdatePhotoContentDTO'\n\nexport class NetworkPhotoContentsRepo implements PhotoContentsRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n create(newPhotoContent: NewPhotoContentDTO): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/photos`,\n DTO.toObject(newPhotoContent),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) =>\n CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n ),\n )\n }\n\n upload(\n uploadPhotoFile: UploadPhotoFileDTO,\n ): Promise>> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/upload`,\n DTO.toObject(uploadPhotoFile),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(\n response,\n UploadContentsURLDTO.fromJSON,\n ),\n )\n }\n\n getList(\n bucketKey: string,\n ): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/photos?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.fromArray(\n response,\n PhotoContentDTO.fromJSON,\n ),\n )\n }\n\n\n getById(\n id: number,\n ): Promise>> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/photos/${id}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(\n response,\n PhotoContentDTO.fromJSON,\n ))\n }\n\n update(\n id: number,\n updatePhotoContent: UpdatePhotoContentDTO,\n ): Promise>> {\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/photos/${id}`,\n DTO.toObject(updatePhotoContent),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON>) =>\n CommonResponseDTO.from(\n response,\n CommonResponseDTO.NO_CONVERT,\n ))\n }\n\n}\n","import {Nullable} from '../../Common/TypeHelper'\nimport {MailMagazine} from './MailMagazineDTO'\n\nexport interface MemberMailMagazineJSON extends MailMagazine {\n subscribed: Nullable\n}\n\nexport class MemberMailMagazine {\n constructor(\n public id: number,\n public name: string,\n public subscribed: Nullable,\n ) {\n }\n\n static fromJSON(jsonObject: MemberMailMagazineJSON): MemberMailMagazine {\n return new MemberMailMagazine(\n jsonObject.id,\n jsonObject.name,\n jsonObject.subscribed,\n )\n }\n}\n","import {Nullable, Optional} from '../../Common/TypeHelper'\nimport BucketHeader, {BucketHeaderJSON, EnrollmentReasonInfo} from './BucketHeader'\n\nexport type BucketContractJSON = BucketHeaderJSON & {\n isTakeover: boolean\n bucketMemberId: Nullable\n}\n\nexport class BucketContract extends BucketHeader {\n isTakeover: boolean\n bucketMemberId: Nullable\n\n constructor(\n id: number,\n bucketKey: string,\n name: string,\n signedUp: boolean,\n enrollmentReasonList: Optional,\n isTakeover: boolean,\n bucketMemberId: Nullable,\n ) {\n super(\n id,\n bucketKey,\n name,\n signedUp,\n enrollmentReasonList,\n )\n this.isTakeover = isTakeover\n this.bucketMemberId = bucketMemberId\n }\n\n static fromJSON(jsonObject: BucketContractJSON): BucketContract {\n return new BucketContract(\n jsonObject.id,\n jsonObject.bucketKey,\n jsonObject.name,\n jsonObject.signedUp,\n jsonObject.enrollmentReasonList,\n jsonObject.isTakeover,\n jsonObject.bucketMemberId,\n )\n }\n}\n","import {PageUrlInfo} from '../Models/Types'\nimport {filteredLogoImg, filteredSignupReturnUrl, Signboard, SignboardJSON} from './SignboardDTO'\nimport {Nullable} from '../../Common/TypeHelper'\nimport {MemberMailMagazine} from './MemberMailMagazine'\nimport {BucketContract, BucketContractJSON} from './BucketContract'\nimport {MBMemberError} from '../Common/MBMemberError'\n\n// サーバーのcom.membucket.contracts.domain.model.SignedUpSignboardInfo.SignedUpStateに対応\nexport type SignedUpState = 'convenience_store_ready'\n\nexport type SignedUpSignboardJSON = Pick & {\n bucketContractList: BucketContractJSON[]\n signedUpStates: SignedUpState[]\n mailMagazineList: MemberMailMagazine[]\n}\n\nexport interface SignedUpSignboard extends Signboard {\n mainService: BucketContract\n freeServices: BucketContract[]\n signedUpStates: SignedUpState[]\n mailMagazineList: MemberMailMagazine[]\n}\n\nexport class SignedUpSignboardDTO implements SignedUpSignboard {\n constructor(\n public id: number | null,\n public signupKey: string,\n public signedUpStates: SignedUpState[],\n public shopId: Nullable,\n public logoImgUrl: string,\n public signupReturnPageInfo: PageUrlInfo,\n public signupName: string,\n public mailMagazineList: MemberMailMagazine[],\n public mainService: BucketContract,\n public freeServices: BucketContract[],\n ) {\n }\n\n static fromJSON(jsonObject: SignedUpSignboardJSON): SignedUpSignboardDTO {\n const logoImgUrl: string = filteredLogoImg(jsonObject.urlList)?.url || ''\n\n const signupReturnUrl = filteredSignupReturnUrl(jsonObject.urlList)\n\n const bucketContractList =\n jsonObject.bucketContractList.map(item => BucketContract.fromJSON(item))\n if (bucketContractList === undefined || bucketContractList.length === 0)\n throw new MBMemberError('ServerError')\n\n return new SignedUpSignboardDTO(\n jsonObject.id,\n jsonObject.signupKey,\n jsonObject.signedUpStates,\n jsonObject.shopId,\n logoImgUrl,\n signupReturnUrl,\n jsonObject.signupName,\n jsonObject.mailMagazineList.map(mailMagazine => MemberMailMagazine.fromJSON(mailMagazine)),\n bucketContractList[0],\n 2 > bucketContractList.length ? [] : bucketContractList.slice(1),\n )\n }\n}\n","import {MemberSignboardRepo} from './MemberSignboardRepo'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../Network/CommonResponse'\nimport FetchWrapper from '../../Network/FetchWrapper'\nimport {withMembersAuth} from '../../Network/BrowserFetchWrapper'\nimport {SignedUpSignboardDTO, SignedUpSignboardJSON} from '../DTO/SignedUpSignboardDTO'\n\nexport class NetworkMemberSignboardRepo implements MemberSignboardRepo {\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(private fetchWrapper: FetchWrapper) {\n }\n\n getSignedUpSignboards(): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/m/r/members/self/signboards`,\n withMembersAuth(),\n ).then((json: CommonResponseJSON) =>\n CommonResponseDTO.fromArray(json, SignedUpSignboardDTO.fromJSON))\n }\n}\n","import {SideNavigationRepo} from './SideNavigationRepo'\nimport SIDE_MENU_LIST from '../DTO/SideMenuList.json'\n\nexport class NetworkSideNavigationRepo implements SideNavigationRepo {\n getMenuList(): { [key: string]: boolean } {\n return SIDE_MENU_LIST\n }\n}\n","export type AdminAgreementJSON = AdminAgreement\n\nexport type AdminAgreementStatus = 'active' | 'inactive' | 'expired'\n\nexport interface AdminAgreement {\n id: number\n publishDateTime: string\n comment: string\n administratorName: string\n createdAt: string\n status: AdminAgreementStatus\n}\n\nexport class AdminAgreementDTO implements AdminAgreement {\n constructor(\n public id: number,\n public publishDateTime: string,\n public comment: string,\n public administratorName: string,\n public createdAt: string,\n public status: AdminAgreementStatus,\n ) {\n }\n\n static fromJSON(jsonObject: AdminAgreementJSON): AdminAgreementDTO {\n const {status} = jsonObject\n\n return new AdminAgreementDTO(\n jsonObject.id,\n jsonObject.publishDateTime,\n jsonObject.comment,\n jsonObject.administratorName,\n jsonObject.createdAt,\n ['active', 'inactive', 'expired'].includes(status) ? status : 'expired',\n )\n }\n}\n","import {AdminAgreementStatus} from './AdminAgreementDTO'\n\nexport type AdminAgreementDetailJSON = AdminAgreementDetailDTO\n\nexport interface AdminAgreementDetail {\n id: number\n content: string\n publishDateTime: string\n comment: string\n administratorName: string\n createdAt: string\n status: AdminAgreementStatus\n bucketKey: string | null\n}\n\nexport class AdminAgreementDetailDTO implements AdminAgreementDetail {\n constructor(\n public id: number,\n public content: string,\n public publishDateTime: string,\n public comment: string,\n public administratorName: string,\n public createdAt: string,\n public status: AdminAgreementStatus,\n public bucketKey: string | null,\n ) {\n }\n\n static fromJSON(jsonObject: AdminAgreementDetailJSON): AdminAgreementDetail {\n return new AdminAgreementDetailDTO(\n jsonObject.id,\n jsonObject.content,\n jsonObject.publishDateTime,\n jsonObject.comment,\n jsonObject.administratorName,\n jsonObject.createdAt,\n ['active', 'inactive', 'expired'].includes(jsonObject.status) ? jsonObject.status : 'expired',\n jsonObject.bucketKey,\n )\n }\n}\n","import {AdminAgreementsRepo} from './AdminAgreementsRepo'\nimport {AdminAgreementDTO, AdminAgreementJSON} from '../DTO/AdminAgreementDTO'\nimport {CommonResponseDTO, CommonResponseJSON} from '../../../../Network/CommonResponse'\nimport FetchWrapper from '../../../../Network/FetchWrapper'\nimport {withAdminsAuth} from '../../../../Network/BrowserFetchWrapper'\nimport {AdminAgreementDetail, AdminAgreementDetailDTO} from '../DTO/AdminAgreementDetailDTO'\nimport {DTO} from '../../../../Common/DtoUtilities'\n\nexport class NetworkAdminAgreementsRepo implements AdminAgreementsRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n getSystemList(): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/agreements`, withAdminsAuth())\n .then((response: CommonResponseJSON) =>\n CommonResponseDTO.fromArray(response, AdminAgreementDTO.fromJSON),\n )\n }\n\n getListByBucketKey(bucketKey: string): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/agreements?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.fromArray(response, AdminAgreementDTO.fromJSON),\n )\n }\n\n getSystemById(id: number): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/agreements/${id}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(response, AdminAgreementDetailDTO.fromJSON),\n )\n }\n\n getByBucketKeyAndId(\n bucketKey: string, id: number,\n ): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/agreements/${id}?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(response, AdminAgreementDetailDTO.fromJSON),\n )\n }\n\n getActiveByBucketKey(\n bucketKey: string,\n ): Promise> {\n return this.fetchWrapper.getByJson(\n `${this.serverUrl}/v1/a/r/active_agreement?bucket_key=${bucketKey}`,\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(response, AdminAgreementDetailDTO.fromJSON),\n )\n }\n\n create(agreementDetail: AdminAgreementDetail): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/agreements`,\n DTO.toObject(agreementDetail),\n withAdminsAuth(),\n ).then((response: CommonResponseJSON) =>\n CommonResponseDTO.from(response, CommonResponseDTO.NO_CONVERT),\n )\n }\n\n delete({id, bucketKey}: AdminAgreementDetail): Promise> {\n const queryParams = bucketKey == null ? '' : `?bucket_key=${bucketKey}`\n return this.fetchWrapper.deleteJson(\n `${this.serverUrl}/v1/a/r/agreements/${id}${queryParams}`, withAdminsAuth(),\n ).then((response: CommonResponseJSON) => CommonResponseDTO.ofNullData(response))\n }\n}\n","type Bucket = {\n bucketKey: string,\n sortOrder: number,\n}\n\nexport interface SimpleSignboard {\n signboardId: number | null\n signupKey: string\n signupName: string\n note: string\n bucketList: Bucket[]\n}\n\nexport class SimpleSignboardDTO implements SimpleSignboard {\n signboardId: number | null;\n signupKey: string;\n signupName: string;\n note: string;\n bucketList: Bucket[];\n\n constructor(\n signboardId: number | null,\n signupKey: string,\n signupName: string,\n note: string,\n bucketList: Bucket[]\n ) {\n this.signboardId = signboardId;\n this.signupKey = signupKey;\n this.signupName = signupName;\n this.note = note;\n this.bucketList = bucketList;\n }\n\n static fromJSON(jsonObject: SimpleSignboard): SimpleSignboardDTO {\n return new SimpleSignboardDTO(\n jsonObject.signboardId,\n jsonObject.signupKey,\n jsonObject.signupName,\n jsonObject.note,\n jsonObject.bucketList,\n )\n }\n}\n","import {SimpleSignboard} from \"./SimpleSignboardDTO\";\n\ntype Bucket = {\n bucketKey: string,\n sortOrder: number,\n}\n\ntype LogoUrl = {\n \"type\": \"logoImg\",\n \"url\": string,\n \"urlReplaceStyle\": \"direct\",\n \"name\": string\n}\ntype ReturnUrl = {\n \"type\": \"signupReturnUrl\",\n \"url\": string,\n \"urlReplaceStyle\": \"direct\" | \"cms\",\n \"name\": string\n}\n\nexport interface Signboard extends SimpleSignboard {\n urlList: (LogoUrl | ReturnUrl)[]\n}\n\nexport class SignboardDTO implements Signboard {\n signboardId: number | null;\n signupKey: string;\n signupName: string;\n note: string;\n bucketList: Bucket[];\n urlList: (LogoUrl | ReturnUrl)[];\n\n constructor(\n signboardId: number | null,\n signupKey: string,\n signupName: string,\n note: string,\n bucketList: Bucket[],\n urlList: (LogoUrl | ReturnUrl)[],\n ) {\n this.signboardId = signboardId;\n this.signupKey = signupKey;\n this.signupName = signupName;\n this.note = note;\n this.bucketList = bucketList;\n this.urlList = urlList;\n }\n\n static fromJSON(jsonObject: Signboard): SignboardDTO {\n return new SignboardDTO(\n jsonObject.signboardId,\n jsonObject.signupKey,\n jsonObject.signupName,\n jsonObject.note,\n jsonObject.bucketList,\n jsonObject.urlList,\n )\n }\n}\n","import FetchWrapper from \"../../../../Network/FetchWrapper\";\nimport {CommonResponseDTO, CommonResponseJSON} from \"../../../../Network/CommonResponse\";\nimport {SimpleSignboard, SimpleSignboardDTO} from \"../DTO/SimpleSignboardDTO\";\nimport {withAdminsAuth} from \"../../../../Network/BrowserFetchWrapper\";\nimport {SignboardRepo} from \"./SignboardRepo\";\nimport {Signboard, SignboardDTO} from \"../DTO/SignboardDTO\";\nimport {DTO} from \"../../../../Common/DtoUtilities\";\nimport {MBAdminError} from \"../../../Utils/MBAdminError\";\n\nclass NetworkSignboardRepo implements SignboardRepo {\n private fetchWrapper: FetchWrapper\n private serverUrl = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_SERVER_URL\n\n constructor(fetchWrapper: FetchWrapper) {\n this.fetchWrapper = fetchWrapper\n }\n\n create(signboard: SignboardDTO): Promise> {\n return this.fetchWrapper.postJson(\n `${this.serverUrl}/v1/a/r/signboards`,\n DTO.toObject(signboard),\n withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n (json: number) => json,\n )\n })\n }\n\n update(signboard: SignboardDTO): Promise> {\n if (signboard.signboardId === null) throw new MBAdminError('signboardId is null')\n\n return this.fetchWrapper.putJson(\n `${this.serverUrl}/v1/a/r/signboards/${signboard.signboardId}`,\n DTO.toObject(signboard),\n withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n (json: null) => json,\n )\n })\n }\n\n delete(signboardId: number): Promise> {\n return this.fetchWrapper.deleteJson(\n `${this.serverUrl}/v1/a/r/signboards/${signboardId}`,\n withAdminsAuth()\n ).then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n (json: null) => json,\n )\n })\n }\n\n getList(): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/signboards`, withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.fromArray(\n response,\n SimpleSignboardDTO.fromJSON,\n )\n })\n }\n\n getById(signboardId: number): Promise> {\n return this.fetchWrapper.getByJson(`${this.serverUrl}/v1/a/r/signboards/${signboardId}`, withAdminsAuth())\n .then((response: CommonResponseJSON) => {\n return CommonResponseDTO.from(\n response,\n SignboardDTO.fromJSON,\n )\n })\n }\n\n}\n\nexport default NetworkSignboardRepo\n","import React from 'react'\nimport {Route, Router, Switch} from 'react-router-dom'\nimport {createBrowserHistory, History, LocationState} from 'history'\nimport {NavigatorForMemberPageImpl} from './Members/Navigator/NavigatorForMemberPageImpl'\nimport {NavigatorForAdminPageImpl} from './Admins/Navigator/NavigatorForAdminPageImpl'\nimport NetworkAnnouncementsRepo from './Admins/Models/Announcement/Repo/NetworkAnnouncementsRepo'\nimport BrowserFetchWrapper from './Network/BrowserFetchWrapper'\nimport NetworkMemberRepo from './Members/Repo/NetworkMemberRepo'\nimport NetworkAdministratorRepo from './Admins/Models/Administrator/Repo/NetworkAdministratorRepo'\nimport NetworkMemberAgreementRepo from './Members/Repo/NetworkMemberAgreementRepo'\nimport {SearchPostCodeImpl} from './Common/SearchPostCodeImpl'\nimport {MembersAuthProvider} from './Members/Auth/MembersAuthProvider'\nimport {NetworkADMembersRepo} from './Admins/Models/Member/Repo/NetworkADMembersRepo'\nimport loadable from '@loadable/component'\nimport {NetworkExportDataRepo} from './Admins/Models/ExportData/Repo/NetworkExportDataRepo'\nimport {AdminsAuthProvider} from './Admins/Auth/AdminsAuthProvider'\nimport NetworkMovieContentsRepo from './Admins/Models/MovieContent/Repo/NetworkMovieContentsRepo'\nimport {NetworkPhotoContentsRepo} from './Admins/Models/PhotoContent/Repo/NetworkPhotoContentsRepo'\nimport {NetworkMemberSignboardRepo} from './Members/Repo/NetworkMemberSignboardRepo'\nimport {NetworkSideNavigationRepo} from './Admins/Models/SideNavigation/Repo/NetworkSideNavigationRepo'\nimport {NetworkAdminAgreementsRepo} from './Admins/Models/Agreement/Repo/NetworkAdminAgreementsRepo'\nimport NetworkSignboardRepo from \"./Admins/Models/Signboard/Repo/NetworkSignboardRepo\";\n\nconst isAppAdmin = (): boolean =>\n !!process.env.REACT_APP_ADMIN_CLIENT_ROOT?.startsWith(location.origin)\n\nconst App: React.VFC = () => {\n const serverUserWithPassword = process.env.REACT_APP_MEMBUCKET_ADMIN_APP_USER_WITH_PASSWORD\n const headers: HeadersInit | undefined =\n serverUserWithPassword ? {'Authorization': 'Basic ' + btoa(serverUserWithPassword)} : undefined\n const browserHistory: History = createBrowserHistory()\n const navigatorForMember = new NavigatorForMemberPageImpl(browserHistory)\n const navigatorForAdmin = new NavigatorForAdminPageImpl(browserHistory)\n const browserFetchWrapper = new BrowserFetchWrapper(headers)\n const administratorRepo = new NetworkAdministratorRepo(browserFetchWrapper)\n const announcementsRepo = new NetworkAnnouncementsRepo(browserFetchWrapper)\n const movieContentsRepo = new NetworkMovieContentsRepo(browserFetchWrapper)\n const photoContentsRepo = new NetworkPhotoContentsRepo(browserFetchWrapper)\n const adMembersRepo = new NetworkADMembersRepo(browserFetchWrapper)\n const extractDataRepo = new NetworkExportDataRepo(browserFetchWrapper)\n const adminAgreementsRepo = new NetworkAdminAgreementsRepo(browserFetchWrapper)\n const sideNavigationRepo = new NetworkSideNavigationRepo()\n const memberRepo = new NetworkMemberRepo(browserFetchWrapper)\n const memberSignboardRepo = new NetworkMemberSignboardRepo(browserFetchWrapper)\n const memberAgreementRepo = new NetworkMemberAgreementRepo(browserFetchWrapper)\n const signboardRepo = new NetworkSignboardRepo(browserFetchWrapper)\n\n const searchPostCode = new SearchPostCodeImpl()\n\n const AppMembers = loadable(() => import('./AppMembers' /* webpackChunkName: \"AppMembers\" */))\n const AppAdmin = loadable(() => import('./Admins/AppAdmin' /* webpackChunkName: \"AppAdmin\" */))\n\n return (\n \n \n \n {isAppAdmin() ?\n \n \n \n :\n \n \n \n }\n \n \n \n )\n}\n\nexport default App\n","import dayjs from 'dayjs'\n\nexport const GENDER: { [key: string]: string } = {1: '男性', 2: '女性', 3: 'その他・回答しない'}\n\nexport namespace ADDRESS {\n export const PREFECTURES: { [key: string]: string } = {\n '01': '北海道', '02': '青森県', '03': '岩手県', '04': '宮城県', '05': '秋田県',\n '06': '山形県', '07': '福島県', '08': '茨城県', '09': '栃木県', '10': '群馬県',\n '11': '埼玉県', '12': '千葉県', '13': '東京都', '14': '神奈川県', '15': '新潟県',\n '16': '富山県', '17': '石川県', '18': '福井県', '19': '山梨県', '20': '長野県',\n '21': '岐阜県', '22': '静岡県', '23': '愛知県', '24': '三重県', '25': '滋賀県',\n '26': '京都府', '27': '大阪府', '28': '兵庫県', '29': '奈良県', '30': '和歌山県',\n '31': '鳥取県', '32': '島根県', '33': '岡山県', '34': '広島県', '35': '山口県',\n '36': '徳島県', '37': '香川県', '38': '愛媛県', '39': '高知県', '40': '福岡県',\n '41': '佐賀県', '42': '長崎県', '43': '熊本県', '44': '大分県', '45': '宮崎県',\n '46': '鹿児島県', '47': '沖縄県',\n }\n}\n\nexport namespace CALENDAR {\n export const YEARS: string[] = Array.from(\n Array(110 + 1),\n (_, i) => {\n return (dayjs().year() - i).toString()\n })\n\n export const YEARS_FOR_CREDIT_CARD: string[] = Array.from(\n Array(14 + 1),\n (_, i) => {\n return (dayjs().year() + i).toString()\n })\n\n export const DAYS: string[] = Array.from(\n Array(31),\n (_, i) => (i + 1).toString().padStart(2, '0'),\n )\n\n export const MONTHS: string[] = Array.from(\n Array(12),\n (_, i) => (i + 1).toString().padStart(2, '0'),\n )\n}\n\nexport namespace PAYMENT {\n export const TERMS: {\n [key: string]:\n { displayLabel: string, order: number }\n } = {\n 'monthly': {displayLabel: '月契約', order: 1},\n 'yearly': {displayLabel: '年契約', order: 2},\n 'permanent': {displayLabel: '', order: 99},\n }\n\n export const METHODS: { [key: string]: string } = {\n 'convenience_store': 'コンビニ',\n 'credit_card': 'クレジットカード',\n 'mobile_carrier': 'キャリア',\n }\n\n export const METHODS_FOR_RADIO_LABEL: { [key: string]: string } = {\n 'convenience_store': 'コンビニ決済',\n 'credit_card': 'クレジットカード決済',\n 'mobile_carrier': 'キャリア決済',\n }\n\n export const SUBSCRIPTION_LABEL: { [key: string]: string } = {\n 'convenience_store': '(更新する場合は手続きが必要です)',\n 'credit_card': '(自動課金継続)',\n 'mobile_carrier': '(自動課金継続)',\n }\n}\n"],"names":["UrlUtility","url","params","queryString","Object","entries","map","key","value","join","item","urlReplaceStyle","CMS_BASE_URL","process","URL","toString","NavigatorForAdminPageImpl","browserHistory","this","push","snackbarMessage","highlightId","pathname","state","administratorId","bucketKey","registeredAnnouncementId","updatedAnnouncementId","announcementId","registeredMovieContentId","updatedMovieContentId","movieContentId","registeredPhotoContentId","updatedPhotoContentId","photoContentId","status","memberId","registeredId","agreementId","agreement","id","pathnameFrom","location","downloadUrl","href","path","replace","signboardId","title","content","publishDate","publishEndDate","jsonObject","AnnouncementDTO","fetchWrapper","serverUrl","newAnnouncement","postJson","DTO","withAdminsAuth","then","response","CommonResponseDTO","getByJson","updateAnnouncement","putJson","AdministratorDTO","name","kana","mail","bucketList","isSystemAdministrator","ListUtility","array","predicate","filteredArray","filter","length","MBAdminError","AdminSignboardInfoDTO","signupKey","signupName","urlList","AdminBucketInfoDTO","fromJSON","MailMagazineDTO","logoImgUrl","shopId","mailMagazineList","signboardList","dependOnList","requiredByList","findOne","type","undefined","AdministratorInformationDTO","filteredBucketList","forEach","bucket","filteredLogoImg","AdminBaseInfoDTO","BucketAttributesDTO","contractMethodList","isInUseBucketMemberId","newAdministratorDTO","data","errorMessageList","updateAdministratorDTO","deleteJson","oneTimeToken","administratorsPasswordDTO","password","SearchPostCodeImpl","postCode","callBack","PostCodeCore","BucketMemberInfoDTO","leaveInfo","mainContract","contract","stage","subscribeMailMagazineIdList","now","getContract","next","contractInfoJson","method","paymentMethodDetail","rest","contractMethod","getMethod","contractType","cardId","cardNumber","expireDate","carrierKey","convenienceStoreKey","paymentTerm","BucketInfoDTO","logoImg","urlInfoList","urlInfoListWithoutLogo","MemberSearchResultDTO","count","memberList","ContractHistoryDTO","executionDate","sourceType","bucketId","bucketName","bucketMemberId","amount","startDate","endDate","term","mainContractId","contractId","gmoOrderId","MembersBelongToBucketDTO","signupDate","stageRank","stageName","MemberInfoDTO","member","creditCardInfoList","gender","birthday","addressPrefectureCode","createdAt","accountCreationDatetime","GENDER","genderCode","String","addressPrefecture","ADDRESS","b","ShippingAddressInfoDTO","shippingAddress","shippingAddressId","familyName","firstName","familyNameKana","firstNameKana","addressCity","addressStreet","addressBuilding","phone","CurrentMemberDenyAttributeDTO","realDenyInfoList","aliasDenyInfoList","comment","applyDate","extensionParamList","extensionParamAliasList","MemberDenyAttributeHistoryDTO","denyInfoList","reporter","DenyInfoDTO","UnionDenyInfoDTO","ExtendMetaDataDTO","header","items","description","NetworkADMembersRepo","limit","queryParams","bucket_key","bucket_member_id","encodeURIComponent","tel","in_leave_member","inLeaveMember","updateMemberBasicInfoDTO","updateMemberAddressDTO","updateShippingAddressInfoDTO","updateExtendMetaDataDTO","updateBucketOptionDTO","updateMemberDenyAttributeDto","leaveMode","ExportDataHistoryDTO","request","result","datetime","dayjs","ExportJobDownloadUrlDTO","NetworkExportDataRepo","exportJobType","exportJob","exportJobId","executeLongPolling","AdminsAuthProvider","props","CommonAuthProvider","msalInstance","adminsMsalInstance","children","MovieContentDTO","NetworkMovieContentsRepo","newMovieContent","updateMovieContent","UploadContentsURLDTO","PhotoContentDTO","fileName","NetworkPhotoContentsRepo","newPhotoContent","uploadPhotoFile","updatePhotoContent","MemberMailMagazine","subscribed","BucketContract","signedUp","enrollmentReasonList","isTakeover","BucketHeader","SignedUpSignboardDTO","signedUpStates","signupReturnPageInfo","mainService","freeServices","signupReturnUrl","filteredSignupReturnUrl","bucketContractList","MBMemberError","mailMagazine","slice","NetworkMemberSignboardRepo","withMembersAuth","json","NetworkSideNavigationRepo","SIDE_MENU_LIST","AdminAgreementDTO","publishDateTime","administratorName","includes","AdminAgreementDetailDTO","NetworkAdminAgreementsRepo","agreementDetail","SimpleSignboardDTO","note","SignboardDTO","signboard","isAppAdmin","startsWith","origin","serverUserWithPassword","REACT_APP_MEMBUCKET_ADMIN_APP_USER_WITH_PASSWORD","headers","btoa","createBrowserHistory","navigatorForMember","NavigatorForMemberPageImpl","navigatorForAdmin","browserFetchWrapper","BrowserFetchWrapper","administratorRepo","NetworkAdministratorRepo","announcementsRepo","NetworkAnnouncementsRepo","movieContentsRepo","photoContentsRepo","adMembersRepo","extractDataRepo","adminAgreementsRepo","sideNavigationRepo","memberRepo","NetworkMemberRepo","memberSignboardRepo","memberAgreementRepo","NetworkMemberAgreementRepo","signboardRepo","NetworkSignboardRepo","searchPostCode","AppMembers","loadable","AppAdmin","history","navigator","exportDataRepo","agreementsRepo","MembersAuthProvider","CALENDAR","Array","from","_","i","year","padStart","PAYMENT","displayLabel","order"],"sourceRoot":""}