@torrow/sdk-client 0.18.0 → 0.18.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +229 -9
- package/dist/index.js +124 -7
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -16658,10 +16658,170 @@ interface paths {
|
|
|
16658
16658
|
};
|
|
16659
16659
|
requestBody?: {
|
|
16660
16660
|
content: {
|
|
16661
|
-
"application/json-patch+json":
|
|
16662
|
-
|
|
16663
|
-
|
|
16664
|
-
|
|
16661
|
+
"application/json-patch+json": {
|
|
16662
|
+
loyaltySystemId?: string | null;
|
|
16663
|
+
contactId?: string | null;
|
|
16664
|
+
state?: components["schemas"]["LoyaltyCardState"];
|
|
16665
|
+
/** Format: date-time */
|
|
16666
|
+
issueDate?: Date | null;
|
|
16667
|
+
/** Format: date-time */
|
|
16668
|
+
expiredDate?: Date | null;
|
|
16669
|
+
/**
|
|
16670
|
+
* @deprecated
|
|
16671
|
+
* @description Игнорируется сервером. Номер карты назначается сервером и сохраняется при обновлении.
|
|
16672
|
+
*/
|
|
16673
|
+
cardNumber?: {
|
|
16674
|
+
fullNumber?: string | null;
|
|
16675
|
+
/** Format: int64 */
|
|
16676
|
+
sequenceNumber?: number;
|
|
16677
|
+
} | null;
|
|
16678
|
+
contactInformation?: components["schemas"]["ContactInformation"];
|
|
16679
|
+
cardIssueInformation?: components["schemas"]["CardIssueInformation"];
|
|
16680
|
+
allowedReferralProgramIds?: string[] | null;
|
|
16681
|
+
subscriptions?: components["schemas"]["LoyaltyCardSubscription"][] | null;
|
|
16682
|
+
balance?: components["schemas"]["BalanceValue"][] | null;
|
|
16683
|
+
name?: string | null;
|
|
16684
|
+
uniqueName?: string | null;
|
|
16685
|
+
image?: components["schemas"]["FileInfo"];
|
|
16686
|
+
masterInfo?: components["schemas"]["MasterInfo"];
|
|
16687
|
+
publicityType?: components["schemas"]["PublicityType"];
|
|
16688
|
+
searchMode?: components["schemas"]["SearchMode"];
|
|
16689
|
+
anyoneAccess?: components["schemas"]["AnyoneAccess"];
|
|
16690
|
+
tags?: string[] | null;
|
|
16691
|
+
rating?: components["schemas"]["Rating"];
|
|
16692
|
+
personalInfo?: components["schemas"]["PersonalInfo"];
|
|
16693
|
+
blockInfo?: components["schemas"]["BlockInfo"];
|
|
16694
|
+
groupInfo?: components["schemas"]["GroupInfo"];
|
|
16695
|
+
solutionData?: components["schemas"]["SolutionData"];
|
|
16696
|
+
childItemStats?: components["schemas"]["ChildItemStat"][] | null;
|
|
16697
|
+
feedbackOptions?: components["schemas"]["FeedbackOptions"];
|
|
16698
|
+
integrationIds?: string[] | null;
|
|
16699
|
+
id?: string | null;
|
|
16700
|
+
meta?: components["schemas"]["ObjectInfo"];
|
|
16701
|
+
};
|
|
16702
|
+
"application/json": {
|
|
16703
|
+
loyaltySystemId?: string | null;
|
|
16704
|
+
contactId?: string | null;
|
|
16705
|
+
state?: components["schemas"]["LoyaltyCardState"];
|
|
16706
|
+
/** Format: date-time */
|
|
16707
|
+
issueDate?: Date | null;
|
|
16708
|
+
/** Format: date-time */
|
|
16709
|
+
expiredDate?: Date | null;
|
|
16710
|
+
/**
|
|
16711
|
+
* @deprecated
|
|
16712
|
+
* @description Игнорируется сервером. Номер карты назначается сервером и сохраняется при обновлении.
|
|
16713
|
+
*/
|
|
16714
|
+
cardNumber?: {
|
|
16715
|
+
fullNumber?: string | null;
|
|
16716
|
+
/** Format: int64 */
|
|
16717
|
+
sequenceNumber?: number;
|
|
16718
|
+
} | null;
|
|
16719
|
+
contactInformation?: components["schemas"]["ContactInformation"];
|
|
16720
|
+
cardIssueInformation?: components["schemas"]["CardIssueInformation"];
|
|
16721
|
+
allowedReferralProgramIds?: string[] | null;
|
|
16722
|
+
subscriptions?: components["schemas"]["LoyaltyCardSubscription"][] | null;
|
|
16723
|
+
balance?: components["schemas"]["BalanceValue"][] | null;
|
|
16724
|
+
name?: string | null;
|
|
16725
|
+
uniqueName?: string | null;
|
|
16726
|
+
image?: components["schemas"]["FileInfo"];
|
|
16727
|
+
masterInfo?: components["schemas"]["MasterInfo"];
|
|
16728
|
+
publicityType?: components["schemas"]["PublicityType"];
|
|
16729
|
+
searchMode?: components["schemas"]["SearchMode"];
|
|
16730
|
+
anyoneAccess?: components["schemas"]["AnyoneAccess"];
|
|
16731
|
+
tags?: string[] | null;
|
|
16732
|
+
rating?: components["schemas"]["Rating"];
|
|
16733
|
+
personalInfo?: components["schemas"]["PersonalInfo"];
|
|
16734
|
+
blockInfo?: components["schemas"]["BlockInfo"];
|
|
16735
|
+
groupInfo?: components["schemas"]["GroupInfo"];
|
|
16736
|
+
solutionData?: components["schemas"]["SolutionData"];
|
|
16737
|
+
childItemStats?: components["schemas"]["ChildItemStat"][] | null;
|
|
16738
|
+
feedbackOptions?: components["schemas"]["FeedbackOptions"];
|
|
16739
|
+
integrationIds?: string[] | null;
|
|
16740
|
+
id?: string | null;
|
|
16741
|
+
meta?: components["schemas"]["ObjectInfo"];
|
|
16742
|
+
};
|
|
16743
|
+
"text/json": {
|
|
16744
|
+
loyaltySystemId?: string | null;
|
|
16745
|
+
contactId?: string | null;
|
|
16746
|
+
state?: components["schemas"]["LoyaltyCardState"];
|
|
16747
|
+
/** Format: date-time */
|
|
16748
|
+
issueDate?: Date | null;
|
|
16749
|
+
/** Format: date-time */
|
|
16750
|
+
expiredDate?: Date | null;
|
|
16751
|
+
/**
|
|
16752
|
+
* @deprecated
|
|
16753
|
+
* @description Игнорируется сервером. Номер карты назначается сервером и сохраняется при обновлении.
|
|
16754
|
+
*/
|
|
16755
|
+
cardNumber?: {
|
|
16756
|
+
fullNumber?: string | null;
|
|
16757
|
+
/** Format: int64 */
|
|
16758
|
+
sequenceNumber?: number;
|
|
16759
|
+
} | null;
|
|
16760
|
+
contactInformation?: components["schemas"]["ContactInformation"];
|
|
16761
|
+
cardIssueInformation?: components["schemas"]["CardIssueInformation"];
|
|
16762
|
+
allowedReferralProgramIds?: string[] | null;
|
|
16763
|
+
subscriptions?: components["schemas"]["LoyaltyCardSubscription"][] | null;
|
|
16764
|
+
balance?: components["schemas"]["BalanceValue"][] | null;
|
|
16765
|
+
name?: string | null;
|
|
16766
|
+
uniqueName?: string | null;
|
|
16767
|
+
image?: components["schemas"]["FileInfo"];
|
|
16768
|
+
masterInfo?: components["schemas"]["MasterInfo"];
|
|
16769
|
+
publicityType?: components["schemas"]["PublicityType"];
|
|
16770
|
+
searchMode?: components["schemas"]["SearchMode"];
|
|
16771
|
+
anyoneAccess?: components["schemas"]["AnyoneAccess"];
|
|
16772
|
+
tags?: string[] | null;
|
|
16773
|
+
rating?: components["schemas"]["Rating"];
|
|
16774
|
+
personalInfo?: components["schemas"]["PersonalInfo"];
|
|
16775
|
+
blockInfo?: components["schemas"]["BlockInfo"];
|
|
16776
|
+
groupInfo?: components["schemas"]["GroupInfo"];
|
|
16777
|
+
solutionData?: components["schemas"]["SolutionData"];
|
|
16778
|
+
childItemStats?: components["schemas"]["ChildItemStat"][] | null;
|
|
16779
|
+
feedbackOptions?: components["schemas"]["FeedbackOptions"];
|
|
16780
|
+
integrationIds?: string[] | null;
|
|
16781
|
+
id?: string | null;
|
|
16782
|
+
meta?: components["schemas"]["ObjectInfo"];
|
|
16783
|
+
};
|
|
16784
|
+
"application/*+json": {
|
|
16785
|
+
loyaltySystemId?: string | null;
|
|
16786
|
+
contactId?: string | null;
|
|
16787
|
+
state?: components["schemas"]["LoyaltyCardState"];
|
|
16788
|
+
/** Format: date-time */
|
|
16789
|
+
issueDate?: Date | null;
|
|
16790
|
+
/** Format: date-time */
|
|
16791
|
+
expiredDate?: Date | null;
|
|
16792
|
+
/**
|
|
16793
|
+
* @deprecated
|
|
16794
|
+
* @description Игнорируется сервером. Номер карты назначается сервером и сохраняется при обновлении.
|
|
16795
|
+
*/
|
|
16796
|
+
cardNumber?: {
|
|
16797
|
+
fullNumber?: string | null;
|
|
16798
|
+
/** Format: int64 */
|
|
16799
|
+
sequenceNumber?: number;
|
|
16800
|
+
} | null;
|
|
16801
|
+
contactInformation?: components["schemas"]["ContactInformation"];
|
|
16802
|
+
cardIssueInformation?: components["schemas"]["CardIssueInformation"];
|
|
16803
|
+
allowedReferralProgramIds?: string[] | null;
|
|
16804
|
+
subscriptions?: components["schemas"]["LoyaltyCardSubscription"][] | null;
|
|
16805
|
+
balance?: components["schemas"]["BalanceValue"][] | null;
|
|
16806
|
+
name?: string | null;
|
|
16807
|
+
uniqueName?: string | null;
|
|
16808
|
+
image?: components["schemas"]["FileInfo"];
|
|
16809
|
+
masterInfo?: components["schemas"]["MasterInfo"];
|
|
16810
|
+
publicityType?: components["schemas"]["PublicityType"];
|
|
16811
|
+
searchMode?: components["schemas"]["SearchMode"];
|
|
16812
|
+
anyoneAccess?: components["schemas"]["AnyoneAccess"];
|
|
16813
|
+
tags?: string[] | null;
|
|
16814
|
+
rating?: components["schemas"]["Rating"];
|
|
16815
|
+
personalInfo?: components["schemas"]["PersonalInfo"];
|
|
16816
|
+
blockInfo?: components["schemas"]["BlockInfo"];
|
|
16817
|
+
groupInfo?: components["schemas"]["GroupInfo"];
|
|
16818
|
+
solutionData?: components["schemas"]["SolutionData"];
|
|
16819
|
+
childItemStats?: components["schemas"]["ChildItemStat"][] | null;
|
|
16820
|
+
feedbackOptions?: components["schemas"]["FeedbackOptions"];
|
|
16821
|
+
integrationIds?: string[] | null;
|
|
16822
|
+
id?: string | null;
|
|
16823
|
+
meta?: components["schemas"]["ObjectInfo"];
|
|
16824
|
+
};
|
|
16665
16825
|
};
|
|
16666
16826
|
};
|
|
16667
16827
|
responses: {
|
|
@@ -36139,7 +36299,7 @@ interface components {
|
|
|
36139
36299
|
operationTypeList?: components["schemas"]["EventType"][] | null;
|
|
36140
36300
|
};
|
|
36141
36301
|
/** @enum {string} */
|
|
36142
|
-
OperationType: "UnknownOperation" | "Verification" | "ConfirmCommunication" | "AcceptInvite" | "SendPersonalReminder" | "DeleteUser" | "AddAccount" | "DeleteAccount" | "GrantAccessToItem" | "DeclineAccessToItem" | "ShareItem" | "SendLinkOfItem" | "RevokeOfferToItem" | "UpdateItem" | "DeleteItem" | "CreateItem" | "ReadItem" | "SearchItem" | "ReadChildItems" | "EditChildItems" | "SortChildItems" | "EditMindMap" | "ChangePublicity" | "EditParticipantType" | "ReadParticipants" | "CanUseAsProfile" | "CopyLink" | "SocialSharing" | "InviteToParticipate" | "ReadCaseParticipants" | "UpdateUniqueName" | "ReadItemOwners" | "HaveNotNotificationWays" | "IncludeToParent" | "ExcludeFromParent" | "IncludeToGroup" | "ExcludeFromGroup" | "SetGroupItem" | "UnsetGroupItem" | "RegisterDevice" | "SetItemTags" | "GetActionHistory" | "UpdateFeedbackOptions" | "SendAnnouncementsToParticipants" | "SetItemMetrics" | "GetFeedbackMessage" | "SaveFeedbackMessage" | "DeleteFeedbackMessage" | "FullViewOfActionHistory" | "GenerateSecurityToken" | "UpdateIntegrationConfigList" | "CreateIntegrationConfig" | "UpdateIntegrationConfig" | "DeleteIntegrationConfig" | "IncludeToAccounts" | "ExcludeFromAccounts" | "GetAccountingTransaction" | "CreateAccountingTransaction" | "UpdateAccountingTransaction" | "RemoveAccountingTransaction" | "FullReadCaseParticipants" | "RequestAccessToItem" | "RevokeRequestToItem" | "Participate" | "RejectOfferToItem" | "Invite" | "SaveItemToMindMap" | "UpdateParticipantProfile" | "RequestParticipantProfile" | "RejectItem" | "BlockItem" | "UnblockItem" | "ReaderTestFunction" | "EditorTestFunction" | "OwnerTestFunction" | "PotentialReaderTestFunction" | "AdministratorTestFunction" | "PublicReaderTestFunction" | "ManagerTestFunction" | "DeletedTestFunction" | "CheckIn" | "BookResources" | "ConfirmOtherCaseParticipation" | "CancelCaseParticipation" | "DisclaimOtherCaseParticipation" | "SendClaimAboutOtherCaseParticipation" | "CreateReminderForConsumer" | "DeleteReminderForConsumer" | "EditReminderForConsumer" | "CreateReminder" | "DeleteReminder" | "EditReminder" | "ChangeTaskStatus" | "ConfirmReminder" | "SendBusinessCard" | "DisclaimMyCaseParticipation" | "SendClaimAboutMyCaseParticipation" | "CreateSingleCaseForGroupCase" | "GenerateCaseReport" | "ConfirmOtherCaseParticipationReminderNotif" | "SendClaimAboutOtherCaseParticipationNotif" | "GetTimetable" | "GetTimetableView" | "CheckInForExecutor" | "CheckInForConsumer" | "CaseReject" | "CaseDeclineWork" | "CasePlan" | "CaseCancel" | "CaseTakeInWork" | "CaseComplete" | "CaseAccept" | "RequestApproveToCaseParticipation" | "UpdateCase" | "UpdateCaseTime" | "UpdateCasePlace" | "ApproveCaseParticipation" | "ConfirmCaseParticipation" | "FreeCaseSpotOpenedUp" | "ApproveMoneyReceive" | "RejectMoneyReceive" | "RequestApproveMoneyReceive" | "UpdateCaseParticipantFields" | "CaseReturnToVerification" | "GetTimetableStatistics" | "MeetingCreationError" | "ApproveMoneyReceiveByPaymentLink" | "IncludeCaseToUserCalendar" | "IncludeCaseToCustomCalendar" | "ExcludeCaseToUserCalendar" | "ExcludeCaseToCustomCalendar" | "GetCalendarCase" | "GetCalendarTask" | "IncludeSpecifications" | "ExcludeSpecifications" | "CreateServiceSession" | "GetCheckInSchedule" | "CreateOrder" | "CreateSpecification" | "ServiceDashboard" | "GenerateServiceReport" | "GenerateServicesResourcesReport" | "GenerateResourcesRentReport" | "UpdateOrder" | "UpdateOrderInfo" | "GetReCheckInSchedule" | "ChangeOrderService" | "GetServiceWorkloadInfo" | "GenerateResourceReport" | "UpdateContactProperties" | "PickOrder" | "ReturnOrder" | "CreateLoyaltyCard" | "CreateLoyaltyCardSubscription" | "GetLoyaltySystemCards" | "GetLoyaltySystemsStatistics" | "ConsumerTestFunction" | "ExecutorTestFunction" | "PotentialConsumerTestFunction" | "CaseActionReminder";
|
|
36302
|
+
OperationType: "UnknownOperation" | "Verification" | "ConfirmCommunication" | "AcceptInvite" | "SendPersonalReminder" | "DeleteUser" | "AddAccount" | "DeleteAccount" | "GrantAccessToItem" | "DeclineAccessToItem" | "ShareItem" | "SendLinkOfItem" | "RevokeOfferToItem" | "UpdateItem" | "DeleteItem" | "CreateItem" | "ReadItem" | "SearchItem" | "ReadChildItems" | "EditChildItems" | "SortChildItems" | "EditMindMap" | "ChangePublicity" | "EditParticipantType" | "ReadParticipants" | "CanUseAsProfile" | "CopyLink" | "SocialSharing" | "InviteToParticipate" | "ReadCaseParticipants" | "UpdateUniqueName" | "ReadItemOwners" | "HaveNotNotificationWays" | "IncludeToParent" | "ExcludeFromParent" | "IncludeToGroup" | "ExcludeFromGroup" | "SetGroupItem" | "UnsetGroupItem" | "RegisterDevice" | "SetItemTags" | "GetActionHistory" | "UpdateFeedbackOptions" | "SendAnnouncementsToParticipants" | "SetItemMetrics" | "GetFeedbackMessage" | "SaveFeedbackMessage" | "DeleteFeedbackMessage" | "FullViewOfActionHistory" | "GenerateSecurityToken" | "UpdateIntegrationConfigList" | "CreateIntegrationConfig" | "UpdateIntegrationConfig" | "DeleteIntegrationConfig" | "IncludeToAccounts" | "ExcludeFromAccounts" | "GetAccountingTransaction" | "CreateAccountingTransaction" | "UpdateAccountingTransaction" | "RemoveAccountingTransaction" | "FullReadCaseParticipants" | "RequestAccessToItem" | "RevokeRequestToItem" | "Participate" | "RejectOfferToItem" | "Invite" | "SaveItemToMindMap" | "UpdateParticipantProfile" | "RequestParticipantProfile" | "RejectItem" | "BlockItem" | "UnblockItem" | "ReaderTestFunction" | "EditorTestFunction" | "OwnerTestFunction" | "PotentialReaderTestFunction" | "AdministratorTestFunction" | "PublicReaderTestFunction" | "ManagerTestFunction" | "DeletedTestFunction" | "CheckIn" | "BookResources" | "ConfirmOtherCaseParticipation" | "CancelCaseParticipation" | "DisclaimOtherCaseParticipation" | "SendClaimAboutOtherCaseParticipation" | "CreateReminderForConsumer" | "DeleteReminderForConsumer" | "EditReminderForConsumer" | "CreateReminder" | "DeleteReminder" | "EditReminder" | "ChangeTaskStatus" | "ConfirmReminder" | "SendBusinessCard" | "DisclaimMyCaseParticipation" | "SendClaimAboutMyCaseParticipation" | "CreateSingleCaseForGroupCase" | "GenerateCaseReport" | "ConfirmOtherCaseParticipationReminderNotif" | "SendClaimAboutOtherCaseParticipationNotif" | "GetTimetable" | "GetTimetableView" | "CheckInForExecutor" | "CheckInForConsumer" | "CaseReject" | "CaseDeclineWork" | "CasePlan" | "CaseCancel" | "CaseTakeInWork" | "CaseComplete" | "CaseAccept" | "RequestApproveToCaseParticipation" | "UpdateCase" | "UpdateCaseTime" | "UpdateCasePlace" | "ApproveCaseParticipation" | "ConfirmCaseParticipation" | "OwnerRequestExchange" | "RevokeExchange" | "OwnerAllowExchange" | "OwnerAllowAnotherExchange" | "OwnerDeclineExchange" | "FreeCaseSpotOpenedUp" | "ApproveMoneyReceive" | "RejectMoneyReceive" | "RequestApproveMoneyReceive" | "CaseCheckIn" | "UpdateCaseParticipantFields" | "CaseReturnToVerification" | "GetTimetableStatistics" | "MeetingCreationError" | "CaseActionEvent" | "ApproveMoneyReceiveByPaymentLink" | "IncludeCaseToUserCalendar" | "IncludeCaseToCustomCalendar" | "ExcludeCaseToUserCalendar" | "ExcludeCaseToCustomCalendar" | "GetCalendarCase" | "GetCalendarTask" | "IncludeSpecifications" | "ExcludeSpecifications" | "CreateServiceSession" | "GetCheckInSchedule" | "CreateOrder" | "CreateSpecification" | "ServiceDashboard" | "GenerateServiceReport" | "GenerateServicesResourcesReport" | "GenerateResourcesRentReport" | "UpdateOrder" | "UpdateOrderInfo" | "GetReCheckInSchedule" | "ChangeOrderService" | "GetServiceWorkloadInfo" | "GenerateResourceReport" | "UpdateContactProperties" | "PickOrder" | "ReturnOrder" | "CreateLoyaltyCard" | "CreateLoyaltyCardSubscription" | "GetLoyaltySystemCards" | "LoyaltyCardExpired" | "SubscriptionExpired" | "LoyaltyCardExpiresSoon" | "SubscriptionExpiresSoon" | "AccountBalanceReachedNotificationLevel" | "AccountBalanceReachedMinimumValue" | "GetLoyaltySystemsStatistics" | "UserRegister" | "ConfirmCommunicationCode" | "ConsumerTestFunction" | "ExecutorTestFunction" | "PotentialConsumerTestFunction" | "ServiceManagerTestFunction" | "CaseActionReminder" | "CaseActionRequestConfirmation" | "CaseActionCancelUnconfirmed" | "CaseActionCaseChange";
|
|
36143
36303
|
OrderFilter: {
|
|
36144
36304
|
searchText?: string | null;
|
|
36145
36305
|
/** Format: int32 */
|
|
@@ -38281,7 +38441,60 @@ interface GetLoyaltyCardOptions extends TorrowItemGetOptions {
|
|
|
38281
38441
|
type LoyaltyCardItem = TorrowItemFromDto<LoyaltyCardItemDto>;
|
|
38282
38442
|
type CreateLoyaltyCardSubscriptionReq = CreateLoyaltyCardSubscriptionReqDto;
|
|
38283
38443
|
type LoyaltyCardSubscription = LoyaltyCardSubscriptionDto;
|
|
38284
|
-
|
|
38444
|
+
/**
|
|
38445
|
+
* Полное обновление существующей {@link LoyaltyCardItem} через общий {@link TorrowItemForCreateOrUpdate}:
|
|
38446
|
+
* id определяет цель, предметные поля — полный сохраняемый снимок.
|
|
38447
|
+
* CardNumber исключён: номер назначает сервер; пропущенные остальные поля не получают patch-семантику.
|
|
38448
|
+
* Выпуск новой карты выполняется через LoyaltySystemsFacade.createLoyaltyCard с CreateLoyaltyCardReq.
|
|
38449
|
+
*/
|
|
38450
|
+
type LoyaltyCardItemForUpdate = Omit<TorrowItemForCreateOrUpdate<LoyaltyCardItem>, "cardNumber">;
|
|
38451
|
+
/** Именованные wire-значения состояния карты; публичный строковый union сохраняется. */
|
|
38452
|
+
declare enum LoyaltyCardStateValues {
|
|
38453
|
+
/** Неопределённое серверное значение, недопустимо для patch. */
|
|
38454
|
+
Unknown = "UnknownLoyaltyCardState",
|
|
38455
|
+
/** Карта выпущена. */
|
|
38456
|
+
Issued = "Issued",
|
|
38457
|
+
/** Карта активна. */
|
|
38458
|
+
Actived = "Actived",
|
|
38459
|
+
/** Карта заблокирована. */
|
|
38460
|
+
Blocked = "Blocked",
|
|
38461
|
+
/** Карта закрыта. */
|
|
38462
|
+
Closed = "Closed"
|
|
38463
|
+
}
|
|
38464
|
+
/** Частичное изменение карты через root CAS PUT; name/image производные, выпуск и баланс выполняются отдельно. */
|
|
38465
|
+
interface LoyaltyCardItemPatch {
|
|
38466
|
+
/** Связанный контакт; null снимает связь. */
|
|
38467
|
+
contactId?: string | null;
|
|
38468
|
+
/** Состояние карты по root-контракту; Unknown не является допустимым изменением. */
|
|
38469
|
+
state?: Exclude<NonNullable<LoyaltyCardItem["state"]>, "UnknownLoyaltyCardState">;
|
|
38470
|
+
/** Дата выпуска; null очищает. */
|
|
38471
|
+
issueDate?: Date | null;
|
|
38472
|
+
/** Срок действия карты; null снимает ограничение. */
|
|
38473
|
+
expiredDate?: Date | null;
|
|
38474
|
+
/** Полная замена контактных данных; fields обязателен и не пуст. */
|
|
38475
|
+
contactInformation?: {
|
|
38476
|
+
/** Полный список значений контактных полей держателя; пустой список отклоняется до HTTP. */
|
|
38477
|
+
fields: NonNullable<NonNullable<LoyaltyCardItem["contactInformation"]>["fields"]>;
|
|
38478
|
+
};
|
|
38479
|
+
/** Полная замена сведений об источнике выпуска (trackingInformation); null очищает. */
|
|
38480
|
+
cardIssueInformation?: NonNullable<LoyaltyCardItem["cardIssueInformation"]> | null;
|
|
38481
|
+
/** Полная замена разрешённых реферальных программ; [] очищает. */
|
|
38482
|
+
allowedReferralProgramIds?: string[];
|
|
38483
|
+
/** Полная замена списка существующих подписок; [] очищает. Новые выпускаются через createSubscription. */
|
|
38484
|
+
subscriptions?: LoyaltyCardSubscriptionPatch[];
|
|
38485
|
+
}
|
|
38486
|
+
/**
|
|
38487
|
+
* Полная запись существующей подписки. Наследует из LoyaltyCardSubscription:
|
|
38488
|
+
* name — название, state — состояние, createDate — время создания,
|
|
38489
|
+
* beginDate/endDate — период действия, caseParticipantId — связь с участником события.
|
|
38490
|
+
* Пропущенные вложенные поля не сливаются со снимком.
|
|
38491
|
+
*/
|
|
38492
|
+
type LoyaltyCardSubscriptionPatch = Omit<LoyaltyCardSubscription, "subscriptionId" | "image"> & {
|
|
38493
|
+
/** Идентификатор уже существующей подписки из снимка карты. */
|
|
38494
|
+
subscriptionId: string;
|
|
38495
|
+
/** Только ссылка загруженного изображения; null снимает связь, URL/metadata не редактируются. */
|
|
38496
|
+
image?: TorrowItemPatchImage | null;
|
|
38497
|
+
};
|
|
38285
38498
|
|
|
38286
38499
|
type LoyaltyTransactionsQuery = {
|
|
38287
38500
|
state?: AccountingTransactionState | null;
|
|
@@ -41496,6 +41709,13 @@ declare class LoyaltyCardsFacade extends TorrowItemCoreFacade<LoyaltyCardItem, L
|
|
|
41496
41709
|
/** Чтение полной карточки для метаданных без дочерних данных. */
|
|
41497
41710
|
protected readFileMetadataItem(id: string, signal?: AbortSignal): Promise<LoyaltyCardItem>;
|
|
41498
41711
|
constructor(http: HttpClient);
|
|
41712
|
+
/**
|
|
41713
|
+
* Изменяет выбранные поля карты через Full GET и максимум один CAS PUT.
|
|
41714
|
+
* Пропуск сохраняет поле; вложенные значения заменяются целиком. Name/image производные.
|
|
41715
|
+
* Номер карты доступен только для чтения. Draft: backend cleanup общего файла шаблона требует live-приёмки. Нет retry/readback.
|
|
41716
|
+
* Effects описывают root write, а не транзакцию файлов, очередей и финансов.
|
|
41717
|
+
*/
|
|
41718
|
+
patch(itemId: string, fields: LoyaltyCardItemPatch, options?: TorrowItemPatchOptions): Promise<TorrowItemPatchResult<LoyaltyCardItem>>;
|
|
41499
41719
|
/**
|
|
41500
41720
|
* Отображаемый аватар из свежей Full-карточки за один GET; отсутствие → null.
|
|
41501
41721
|
* Сервер уже применил наследование изображения программы. image/info читает собственный файл карты,
|
|
@@ -41547,8 +41767,8 @@ declare class LoyaltyCardsFacade extends TorrowItemCoreFacade<LoyaltyCardItem, L
|
|
|
41547
41767
|
getSubscriptionTransactions(torrowId: string, subscriptionId: string, query?: LoyaltyTransactionsQuery, options?: {
|
|
41548
41768
|
signal?: AbortSignal;
|
|
41549
41769
|
}): Promise<AccountingTransaction[]>;
|
|
41550
|
-
/** `PUT /api/v1/loyaltycards/{body.id}
|
|
41551
|
-
update(body:
|
|
41770
|
+
/** `PUT /api/v1/loyaltycards/{body.id}`; server-owned cardNumber исключается из копии тела. */
|
|
41771
|
+
update(body: LoyaltyCardItemForUpdate, options?: TorrowItemUpdateOptions): Promise<LoyaltyCardItem>;
|
|
41552
41772
|
/** `DELETE /api/v1/loyaltycards/{torrowId}` */
|
|
41553
41773
|
delete(torrowId: string, options: TorrowItemDeleteOptions): Promise<number>;
|
|
41554
41774
|
/** `GET /api/v1/loyaltycards/{torrowId}` */
|
|
@@ -42712,4 +42932,4 @@ declare class ResourceBuilder {
|
|
|
42712
42932
|
build(): ResourceBuildResult;
|
|
42713
42933
|
}
|
|
42714
42934
|
|
|
42715
|
-
export { type Account, type AccountDto, type AccountType, AccountTypeValueList, AccountTypeValues, type AccountingTransaction, type AccountingTransactionDto, type AccountingTransactionState, type AccountingTransactionStateDto, AccountingTransactionsFacade, type AccountingTransactionsListQuery, ActionHistoryFacade, type ActionHistoryInfo, type ActionHistoryInfoDto, type ActionHistoryListQuery, type ActionHistoryState, type ActionHistoryStateDto, type ActionHistoryType, type ActionHistoryTypeDto, type ActivityStatus, type ActivityStatusDto, type AddExternalAuthReq, type AddExternalAuthReqDto, type AddExternalAuthResp, type AddExternalAuthRespDto, type AddProfileResp, type AddProfileRespDto, type AddServicePaymentGroupInput, type AddServiceResourceGroupInput, type AddServiceResourceStepInput, type Address, type AdvisedItemTypeDto, type AdvisedItemsSearchQuery, type AnnouncementInfo, type AnnouncementInfoDto, type AnnouncementState, type AnnouncementStateDto, AnnouncementsFacade, type AnnouncementsListQuery, type AnyoneAccess, AnyoneAccessValues, ApiErrorNameValues, type ApiKeyInfo, type ApiKeyInfoDto, ApiKeysFacade, type ApproveCaseParticipationReq, type ApproveCaseParticipationReqDto, type AuthCaptchaType, AuthCaptchaTypeValueList, AuthCaptchaTypeValues, AuthFacade, type AuthIdentityBasic, type AuthScope, AuthScopeValueList, AuthScopeValues, AuthSessionEffectStep, type AuthSessionErrorDetail, AuthSessionErrorReason, type AvailabilityTime, type AvailabilityTimeDto, type AvailableResources, AvailableResourcesValues, type BalanceValue, type BalanceValueDto, type BaseItemProperties, BehaviorSettingsEffectStep, type BehaviorSettingsErrorDetail, type BlockReason, type BlockReasonDto, type BlockReasonListQuery, BlockReasonsFacade, type BlockSettings, type BookResourcesForMeReq, type BookResourcesForMeReqDto, type BookResourcesForOthersReq, type BookResourcesForOthersReqDto, type BookResourcesReqDto, type BookingProperties, type BookingWizardExpandedStep, type BuildContextIconSvgOptions, type CalendarItem, type CalendarItemDto, type CalendarItemForCreateOrUpdate, type CalendarItemPatch, type CalendarItemPatchScheduleRangeExceptions, type CalendarItemPatchTimeRange, type CalendarView, type CalendarViewDto, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, type CaseItemForCreateOrUpdate, type CaseItemPatch, type CaseParticipant, type CaseParticipantDto, type CaseParticipantFields, type CaseParticipantFieldsDto, type CaseParticipantStateDto, type CaseParticipantType, type CaseParticipantTypeDto, type CaseParticipantView, type CaseParticipantViewDto, type CaseParticipantsCountQuery, type CaseParticipantsListQuery, type CaseReportProperties, type CaseState, CaseStateValues, type CaseType, CaseTypeValues, type CaseView, type CaseViewDto, CasesFacade, type CellValueType, CellValueTypeValues, type ChangeMoneyReceiveReq, type ChangeMoneyReceiveReqDto, type ChangeOrderServiceReq, type ChangeOrderServiceReqDto, type CheckInOtherReqDto, type CheckInProps, type CheckInPropsDto, type CheckInReq, type CheckInReqDto, type ColumnType, ColumnTypeValues, type Communication, type CommunicationBrandId, type CommunicationForCreateOrUpdate, type CommunicationType, CommunicationTypeValues, type CompleteAddingAccountReq, type CompleteAddingAccountReqDto, type CompleteDeletingUserReq, type CompleteDeletingUserReqDto, type CompleteDeletingUserResp, type CompleteDeletingUserRespDto, type ContactCaseParticipantsListQuery, type ContactCommunicationPatch, type ContactItem, type ContactItemDto, type ContactItemForCreateOrUpdate, type ContactItemPatch, type ContactPersonalInfo, type ContactProperties, type ContactPropertiesDto, type ContactSearchQuery, type ContactView, type ContactViewDto, type ContactVisitCard, type ContactVisitCardField, ContactsFacade, type ContextIconPresetValue, ContextIconPresetValues, type ContextItem, type ContextItemDto, type ContextItemForCreateOrUpdate, type ContextItemPatch, type ContextView, type ContextViewDto, ContextsFacade, type CreateApiKeyRequest, type CreateApiKeyRequestDto, type CreateApiKeyResponse, type CreateApiKeyResponseDto, type CreateAuthSessionReq, type CreateAuthSessionReqDto, type CreateAuthSessionResp, type CreateAuthSessionRespDto, type CreateCaseItemOptions, type CreateCaseReq, type CreateCaseReqDto, type CreateLoyaltyCardReq, type CreateLoyaltyCardReqDto, type CreateLoyaltyCardSubscriptionReq, type CreateLoyaltyCardSubscriptionReqDto, type CreateOrderReq, type CreateOrderReqDto, type CreateViewListReqDto, type CreateViewListRespDto, DEFAULT_TORROW_API_BASE_URL, DefaultAuthScopes, type DeleteResponse, type DeleteResponseDto, type DeleteUserAccountReq, type DeleteUserAccountReqDto, type DeleteUserAccountResp, type DeleteUserAccountRespDto, type DeliveryChannelDto, type DeviceInfo, type DeviceInfoDto, type DeviceSettingsInfo, type DeviceSettingsInfoDto, type DeviceType, type DeviceTypeDto, DeviceTypeValueList, DeviceTypeValues, type DictionarySortCondition, type DictionarySortConditionDto, Discriminator, type DiscriminatorType, type ExcludeFromGroupsReq, type ExcludeFromGroupsReqDto, type ExcludeReqDto, type ExcludeResp, type ExcludeRespDto, type ExportGraph, type ExportGraphDto, ExportImportFacade, type ExportRequest, type ExportRequestDto, type ExternalAuth, type ExternalAuthDto, ExternalAuthsFacade, type ExternalCalendar, type ExternalCalendarIntegration, type ExternalCalendarIntegrationForCreateOrUpdate, type ExternalCalendarIntegrationParameters, type Feedback, type FeedbackDto, type FeedbackOptions, type FeedbackOptionsDto, type FileInfo, type FileInfoDto, type FileMetadataErrorDetail, FileMetadataErrorReason, FileMetadataFailureAt, FileMetadataOperation, type FreeCheckInSlot, type Gender, GenderValues, type GenerateReportReq, type GenerateReportReqDto, type GenerateReportResp, type GenerateReportRespDto, type GenerateSecurityTokenReq, type GenerateSecurityTokenReqDto, type GenerateSecurityTokenResp, type GenerateSecurityTokenRespDto, type GetCalendarOptions, type GetCaseOptions, type GetCaseParticipationCountResp, type GetCaseParticipationCountRespDto, type GetCheckInScheduleReq, type GetCheckInScheduleReqDto, type GetCheckInScheduleResp, type GetCheckInScheduleRespDto, type GetContactOptions, type GetContextOptions, type GetLoyaltyCardOptions, type GetLoyaltySystemOptions, type GetLoyaltySystemsStatisticsReq, type GetLoyaltySystemsStatisticsReqDto, type GetLoyaltySystemsStatisticsResp, type GetLoyaltySystemsStatisticsRespDto, type GetNoteOptions, type GetParticipationCountRespDto, type GetReCheckInScheduleReq, type GetReCheckInScheduleReqDto, type GetResourceOptions, type GetServiceOptions, type GetServiceWorkloadInfoRequest, type GetServiceWorkloadInfoRequestDto, type GetServiceWorkloadInfoResp, type GetServiceWorkloadInfoRespDto, type GetShareItemSessionReq, type GetShareItemSessionReqDto, type GetTimetableStatisticsRequest, type GetTimetableStatisticsRequestDto, type GetTimetableStatisticsResponseDto, type GetTorrowIdResp, type GetTorrowIdRespDto, type GroupStatus, type GroupStatusDto, type Hobby, type HobbyDto, HttpClient, type HttpMethod, type HttpRequestInit, IdGeneratorFacade, type ImagePreviewSize, ImagePreviewSizeValues, type ImportByFileRequest, type ImportByFileRequestDto, type ImportByUniqueNameRequest, type ImportByUniqueNameRequestDto, type IncludeExcludeResp, type IncludeExcludeRespDto, type IncludeForUserReq, type IncludeForUserReqDto, type IncludeToGroupsReq, type IncludeToGroupsReqDto, type IncludeToParentReq, type IncludeToParentReqDto, type InitAddingAccountReq, type InitAddingAccountReqDto, type InitAddingAccountResp, type InitAddingAccountRespDto, type InitDeletingUserResp, type InitDeletingUserRespDto, type Integration, type IntegrationDto, type IntegrationEvent, IntegrationEventTypeValues, type IntegrationForCreateOrUpdate, IntegrationTypeValues, IntegrationsFacade, ItemFacade, type ItemFeedback, type ItemFeedbackDto, ItemPatchEffectStep, type ItemPatchErrorDetail, type ItemPricePatchFields, type ItemPricePatchInfo, type ItemPricePatchProperties, type ItemPricePatchSetting, type ItemProperties, type ItemSortConditionDto, type ItemTagsListQuery, type ItemTextSearchQuery, type ItemViewSortConditionDto as ItemViewSortCondition, type ItemViewSortConditionDto, ItemViewSortConditionValueList, ItemViewSortConditionValues, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type KnownIntegration, type KnownServiceType, type LayoutTypeValue, LayoutTypeValues, type LoyaltyCardFilterCondition, type LoyaltyCardFilterConditionDto, type LoyaltyCardIssueType, LoyaltyCardIssueTypeValues, type LoyaltyCardItem, type LoyaltyCardItemDto, type LoyaltyCardItemForCreateOrUpdate, type LoyaltyParticipantsQuery as LoyaltyCardParticipantsQuery, type Participation as LoyaltyCardParticipation, type ParticipationResp as LoyaltyCardParticipationResp, type SendLinkOfItemReq as LoyaltyCardSendLinkReq, type SendLinkOfItemResp as LoyaltyCardSendLinkResp, type ShareItemReq as LoyaltyCardShareReq, type LoyaltyCardSortCondition, type LoyaltyCardSortConditionDto, LoyaltyCardSortConditionValues, type LoyaltyCardStateDto, type LoyaltyCardSubscription, type LoyaltyCardSubscriptionDto, type LoyaltyCardUpdateKeyInformation, LoyaltyCardUpdateKeyInformationValues, type LoyaltyCardUpdateNonKeyInformation, LoyaltyCardUpdateNonKeyInformationValues, type LoyaltyCardView, type LoyaltyCardViewDto, LoyaltyCardsFacade, type LoyaltyGroupListQuery, type LoyaltyPersonalListQuery, type LoyaltySystemInitialSubscriptionPatch, type LoyaltySystemItem, type LoyaltySystemItemDto, type LoyaltySystemItemForCreateOrUpdate, type LoyaltySystemItemForUpdate, type LoyaltySystemItemPatch, type LoyaltyParticipantsQuery as LoyaltySystemParticipantsQuery, type Participation as LoyaltySystemParticipation, type ParticipationResp as LoyaltySystemParticipationResp, type LoyaltySystemPersonalListQuery, type SendLinkOfItemReq as LoyaltySystemSendLinkReq, type SendLinkOfItemResp as LoyaltySystemSendLinkResp, type ShareItemReq as LoyaltySystemShareReq, type LoyaltySystemView, type LoyaltySystemViewDto, LoyaltySystemsFacade, type LoyaltySystemsStatisticsResp, type LoyaltySystemsStatisticsRespDto, type LoyaltyTransactionsQuery, type ManagedSolutionData, type MemorableDate, type Metrics, type NoteItem, type NoteItemDto, type NoteItemForCreateOrUpdate, type NoteItemPatch, type NoteType, type NoteTypeDto, NoteTypeValues, type NoteView, type NoteViewDto, NotesFacade, type NotificationWay, type NotificationWayDto, type ObjectInfoDto, type ObjectSortConditionDto, type OperationTypeDto, type OrderFilter, type OrderFilterDto, type OrderResp, type OrderRespDto, type OrderSearchQuery, type OrderViewSortConditionDto, type OtpErrorDetail, OtpErrorReason, type ParticipantStateDto as ParticipantState, type ParticipantStateDto, type ParticipantTypeDto as ParticipantType, type ParticipantTypeDto, type ParticipantView, type ParticipantViewDto, type Participation, type ParticipationDto, type ParticipationFieldRequirementType, ParticipationFieldRequirementTypeValues, type ParticipationFieldType, ParticipationFieldTypeValues, type ParticipationResp, type ParticipationRespDto, type PatchCaseReq, type PatchCaseReqDto, type PaymentProviderType, PaymentProviderTypeValues, type PersonalListQuery, type PersonalReminder, type PersonalReminderDto, type PersonalSolutionData, type PersonalSolutionDataDto, type PickOrderReq, type PickOrderReqDto, type PickOrderResp, type PickOrderRespDto, PinnedViewsFacade, type Place, type PlaceDto, type ProfileListResp, type ProfileListRespDto, type ProfileProperties, type ProfilePropertiesDto, type ProfileType, ProfileTypeValues, ProfilesFacade, type PublicityType, type PublicityTypeDto, type PutUrlResp, type PutUrlRespDto, type Rating, RawClient, type RawRequestOptions, type RefreshReq, type RefreshReqDto, type RegisterInfo, type RegisterUserForAccountResp, type RegisterUserForAccountRespDto, type RegistrationUserInfo, type RegistrationUserInfoDto, RelationsFacade, type RemoveProfileResp, type RemoveProfileRespDto, type ReportOptions, type ReportProperties, type ReportPropertiesBase, ReportsFacade, type ResolvedTorrowClientConfig, type ResourceBuildResult, ResourceBuilder, type ResourceGroup, type ResourceItem, type ResourceItemApiDto, type ResourceBehaviorSettings as ResourceItemBehaviorSettings, type ResourceItemForCreateOrUpdate, type ResourceItemPatch, type ResourceItemPatchFields, type ResourceMindMapView, type ResourceMindMapViewDto, type ResourcePaymentPatchParameters, type ResourcePaymentPatchProperties, type ResourceReportProperties, type ResourceServiceBindingOptions, type ResourceUsageConditionType, type ResourceView, type ResourceViewDto, ResourcesFacade, type ResourcesFilterOptions, type ResourcesRentReportProperties, type ReturnOrderReq, type ReturnOrderReqDto, type ReturnOrderResp, type ReturnOrderRespDto, type RevokeReq, type RevokeReqDto, type SaveItemToMindMapReq, type SaveItemToMindMapReqDto, SearchFacade, type SearchLoyaltyCardsReq, type SearchLoyaltyCardsReqDto, type SearchServiceResourcesReq, type SearchServiceResourcesReqDto, type SearchServiceResourcesResp, type SearchServiceResourcesRespDto, type SendCodeAccountType, SendCodeAccountTypeValueList, SendCodeAccountTypeValues, type SendCodeReq, type SendCodeReqDto, type SendCodeReqForOtp, type SendCodeResp, type SendCodeRespDto, type SendCommunicationCodeReq, type SendCommunicationCodeReqDto, type SendCommunicationCodeResp, type SendCommunicationCodeRespDto, type SendLinkOfItemReqDto, type SendLinkOfItemRespDto, type ServiceBehaviorSettings, type ServiceBehaviorSettingsIssue, ServiceBehaviorSettingsIssueReason, type ServiceBehaviorSettingsState, type ServiceBehaviorSettingsUpdateOptions, type ServiceBehaviorSettingsUpdateResult, type ServiceBuildResult, ServiceBuilder, ServiceCheckInWizardStepParameterName, ServiceCheckInWizardStepType, type ServiceDescription, type ServiceItem, type ServiceItemApiDto, type ServiceItemForCreateOrUpdate, type ServiceItemForUpdate, type ServiceItemPatch, ServiceOrderConflictErrorNameValues, type ServiceOrderConflictReason, type ServiceReportProperties, type ServiceResourceStepUsageType, type ServiceSessionDurationOptions, ServiceType, type ServiceTypePreset, ServiceTypePresetValues, type ServiceView, type ServiceViewDto, ServicesFacade, type ServicesResourcesReportProperties, type SessionDurationProperties, type SessionDurationPropertiesDto, type SessionDurationType, SessionDurationTypeValues, type SessionPrecisionType, SessionPrecisionTypeValues, type SetGroupItemReqDto, type ShareItemReq, type ShareItemReqDto, ShortUrlFacade, type SolutionData, type SolutionDataDto, type Filter as SolutionDataFilter, type StateManagementType, StateManagementTypeValues, type StepDescription, type StepDescriptionDto, type DictionarySortCondition as ThesaurusDictionarySortCondition, ThesaurusFacade, type TimePeriod, type TimeSelectionType, TimeSelectionTypeValues, type TimeSplitType, TimeSplitTypeValues, type TimeStepUiMode, TimeStepUiModeValues, type TimetableCase, type TimetableCaseDto, type TimetableDetailsVisibility, type TimetableDetailsVisibilityDto, type TimetableFilter, type TimetableFilterDto, type TimetableQueryOptions, type TimetableStatisticsResp, type TimetableStatisticsRespDto, type TimetableViewTypeValue, TimetableViewTypeValues, type TokenReq, type TokenReqDto, type TokenResp, type TokenRespDto, type TokenStatus, TokenStatusValueList, TokenStatusValues, type TorrowChildItemCreateOptions, TorrowClient, type TorrowClientConfig, TorrowIdError, type TorrowIdErrorReason, type TorrowItem, type TorrowItemCreateOptions, type TorrowItemDeleteOptions, type TorrowItemDto, type TorrowItemForCreateOrUpdate, type TorrowItemFromDto, type TorrowItemGetOptions, type TorrowItemPatchFields, type TorrowItemPatchImage, type TorrowItemPatchOptions, type TorrowItemPatchResult, type TorrowItemType, TorrowItemTypeValueList, TorrowItemTypeValues, type TorrowItemUpdateOptions, type TorrowItemView, type TorrowItemViewByTypeMap, type TorrowObject, type TorrowObjectDto, type TorrowObjectType, TorrowObjectTypeCode, type TorrowObjectTypeCodeValue, type TorrowObjectTypeDto, type TorrowOptions, type TorrowSdkEffect, TorrowSdkEffectArea, TorrowSdkEffectState, TorrowSdkError, TorrowSdkErrorCategory, type TorrowSdkErrorDetail, TorrowSdkErrorDomain, type TorrowSdkErrorInfo, type TorrowSdkErrorInit, type TorrowSdkHttpDetails, TorrowSdkRequestState, type TorrowSdkSensitiveDetails, type UnpackedTorrowId, type UnsetGroupItemReqDto, type UpdateAnnouncementStateReq, type UpdateAnnouncementStateReqDto, type UpdateCalendarItemOptions, type UpdateCaseItemOptions, type UpdateContactItemOptions, type UpdateContactPropertiesResp, type UpdateContactPropertiesRespDto, type UpdateFileIdResp, type UpdateFileIdRespDto, type UpdateItemAccountsReqDto, type UpdateItemGroupsReqDto, type UpdateMasterInfoReq, type UpdateMasterInfoReqDto, type UpdateOrderInfoReq, type UpdateOrderInfoReqDto, type UpdateOrderReq, type UpdateOrderReqDto, type UpdatePersonalListOrderReq, type UpdatePersonalListOrderReqDto, type UpdatePersonalListOrderResp, type UpdatePersonalListOrderRespDto, type UpdateProfilePropertiesResp, type UpdateProfilePropertiesRespDto, type UpdateResourceItemOptions, type UpdateServiceItemOptions, type UpdateViewListOrderReqDto, type UpdateViewListOrderRespDto, type UsageCondition, type UsageConditionType, UsageConditionTypeValues, type UsageType, UsageTypeValues, type UserAccessLevel, UserAccessLevelValues, type UserAccountsQuery, type UserCalendar, type UserCalendarDto, type UserDeliveryWay, type UserDeliveryWayDto, UserFacade, type UserFeedback, type UserFeedbackDto, type UserProfileItemForAdd, UserSettingsFacade, type UserSettingsInfo, type UserSettingsInfoDto, type UserTimetableQuery, UserViewsFacade, type VerificationMethod, VerificationMethodValueList, VerificationMethodValues, type VerifyCommunicationCodeReq, type VerifyCommunicationCodeReqDto, type VerifyCommunicationCodeResp, type VerifyCommunicationCodeRespDto, type VideoTelephony, type VideoTelephonyIntegration, type VideoTelephonyIntegrationForCreateOrUpdate, type VideoTelephonyIntegrationParameters, type ViewBlockSettings, type ViewInfo, type ViewInfoDto, type ViewListQuery, type ViewListRootQuery, type ViewOrderInput, ViewsFacade, type WebHookIntegration, type WebHookIntegrationForCreateOrUpdate, type WebHookIntegrationParameters, type WorkloadPeriod, type WorkloadPeriodDto, buildContextIconSvg, buildContextIconSvgBytes, cancelCaseParticipation, communicationHref, type components, createOrder, createServiceSessionDurationProperties, expandBookingWizardSteps, generateRid, generateServiceResourceGroupId, generateTorrowId, generateTorrowIdForOwner, getCase, getCheckInSchedule, getContextIconPresetFileName, getFreeCheckInSlots, getResourceGroupIdFromStep, getService, getServiceOrderConflictReason, getServiceResources, getServiceType, getServiceTypeFromSessionDurationProperties, getShardFromTorrowId, getStepParameter, getTicketPaymentUrl, getTicketPaymentUrlRaw, getTimeStepUiMode, getTorrowItemTypeFromTorrowId, getTorrowItemTypeFromTorrowIds, getTorrowObjectTypeFromTorrowId, isAccountType, isAuthCaptchaType, isAuthScope, isContextIconPreset, isDeviceType, isExternalCalendarIntegration, isFreeCheckInSlot, isItemViewSortCondition, isSendCodeAccountType, isServiceOrderConflictError, isStepFlag, isTokenRespReadyStatus, isTokenStatus, isTorrowItemType, isVerificationMethod, isVideoTelephonyIntegration, isWebHookIntegration, normalizePaymentUrl, packTorrowId, parseAccountType, parseAuthCaptchaType, parseAuthScope, parseContextIconPresetFromImage, parseDeviceType, parseSendCodeAccountType, parseTokenStatus, parseVerificationMethod, type paths, resolveCommunicationBrand, shouldSkipResourceStep, sortStepDescriptionsByOrder, torrowObjectTypeToCode, unpackTorrowId };
|
|
42935
|
+
export { type Account, type AccountDto, type AccountType, AccountTypeValueList, AccountTypeValues, type AccountingTransaction, type AccountingTransactionDto, type AccountingTransactionState, type AccountingTransactionStateDto, AccountingTransactionsFacade, type AccountingTransactionsListQuery, ActionHistoryFacade, type ActionHistoryInfo, type ActionHistoryInfoDto, type ActionHistoryListQuery, type ActionHistoryState, type ActionHistoryStateDto, type ActionHistoryType, type ActionHistoryTypeDto, type ActivityStatus, type ActivityStatusDto, type AddExternalAuthReq, type AddExternalAuthReqDto, type AddExternalAuthResp, type AddExternalAuthRespDto, type AddProfileResp, type AddProfileRespDto, type AddServicePaymentGroupInput, type AddServiceResourceGroupInput, type AddServiceResourceStepInput, type Address, type AdvisedItemTypeDto, type AdvisedItemsSearchQuery, type AnnouncementInfo, type AnnouncementInfoDto, type AnnouncementState, type AnnouncementStateDto, AnnouncementsFacade, type AnnouncementsListQuery, type AnyoneAccess, AnyoneAccessValues, ApiErrorNameValues, type ApiKeyInfo, type ApiKeyInfoDto, ApiKeysFacade, type ApproveCaseParticipationReq, type ApproveCaseParticipationReqDto, type AuthCaptchaType, AuthCaptchaTypeValueList, AuthCaptchaTypeValues, AuthFacade, type AuthIdentityBasic, type AuthScope, AuthScopeValueList, AuthScopeValues, AuthSessionEffectStep, type AuthSessionErrorDetail, AuthSessionErrorReason, type AvailabilityTime, type AvailabilityTimeDto, type AvailableResources, AvailableResourcesValues, type BalanceValue, type BalanceValueDto, type BaseItemProperties, BehaviorSettingsEffectStep, type BehaviorSettingsErrorDetail, type BlockReason, type BlockReasonDto, type BlockReasonListQuery, BlockReasonsFacade, type BlockSettings, type BookResourcesForMeReq, type BookResourcesForMeReqDto, type BookResourcesForOthersReq, type BookResourcesForOthersReqDto, type BookResourcesReqDto, type BookingProperties, type BookingWizardExpandedStep, type BuildContextIconSvgOptions, type CalendarItem, type CalendarItemDto, type CalendarItemForCreateOrUpdate, type CalendarItemPatch, type CalendarItemPatchScheduleRangeExceptions, type CalendarItemPatchTimeRange, type CalendarView, type CalendarViewDto, CalendarsFacade, type CancelCaseParticipationReq, type CancelCaseParticipationReqDto, type CancelMyCaseParticipationReqDto, type CancelOtherCaseParticipationReqDto, type CaseItem, type CaseItemDto, type CaseItemForCreateOrUpdate, type CaseItemPatch, type CaseParticipant, type CaseParticipantDto, type CaseParticipantFields, type CaseParticipantFieldsDto, type CaseParticipantStateDto, type CaseParticipantType, type CaseParticipantTypeDto, type CaseParticipantView, type CaseParticipantViewDto, type CaseParticipantsCountQuery, type CaseParticipantsListQuery, type CaseReportProperties, type CaseState, CaseStateValues, type CaseType, CaseTypeValues, type CaseView, type CaseViewDto, CasesFacade, type CellValueType, CellValueTypeValues, type ChangeMoneyReceiveReq, type ChangeMoneyReceiveReqDto, type ChangeOrderServiceReq, type ChangeOrderServiceReqDto, type CheckInOtherReqDto, type CheckInProps, type CheckInPropsDto, type CheckInReq, type CheckInReqDto, type ColumnType, ColumnTypeValues, type Communication, type CommunicationBrandId, type CommunicationForCreateOrUpdate, type CommunicationType, CommunicationTypeValues, type CompleteAddingAccountReq, type CompleteAddingAccountReqDto, type CompleteDeletingUserReq, type CompleteDeletingUserReqDto, type CompleteDeletingUserResp, type CompleteDeletingUserRespDto, type ContactCaseParticipantsListQuery, type ContactCommunicationPatch, type ContactItem, type ContactItemDto, type ContactItemForCreateOrUpdate, type ContactItemPatch, type ContactPersonalInfo, type ContactProperties, type ContactPropertiesDto, type ContactSearchQuery, type ContactView, type ContactViewDto, type ContactVisitCard, type ContactVisitCardField, ContactsFacade, type ContextIconPresetValue, ContextIconPresetValues, type ContextItem, type ContextItemDto, type ContextItemForCreateOrUpdate, type ContextItemPatch, type ContextView, type ContextViewDto, ContextsFacade, type CreateApiKeyRequest, type CreateApiKeyRequestDto, type CreateApiKeyResponse, type CreateApiKeyResponseDto, type CreateAuthSessionReq, type CreateAuthSessionReqDto, type CreateAuthSessionResp, type CreateAuthSessionRespDto, type CreateCaseItemOptions, type CreateCaseReq, type CreateCaseReqDto, type CreateLoyaltyCardReq, type CreateLoyaltyCardReqDto, type CreateLoyaltyCardSubscriptionReq, type CreateLoyaltyCardSubscriptionReqDto, type CreateOrderReq, type CreateOrderReqDto, type CreateViewListReqDto, type CreateViewListRespDto, DEFAULT_TORROW_API_BASE_URL, DefaultAuthScopes, type DeleteResponse, type DeleteResponseDto, type DeleteUserAccountReq, type DeleteUserAccountReqDto, type DeleteUserAccountResp, type DeleteUserAccountRespDto, type DeliveryChannelDto, type DeviceInfo, type DeviceInfoDto, type DeviceSettingsInfo, type DeviceSettingsInfoDto, type DeviceType, type DeviceTypeDto, DeviceTypeValueList, DeviceTypeValues, type DictionarySortCondition, type DictionarySortConditionDto, Discriminator, type DiscriminatorType, type ExcludeFromGroupsReq, type ExcludeFromGroupsReqDto, type ExcludeReqDto, type ExcludeResp, type ExcludeRespDto, type ExportGraph, type ExportGraphDto, ExportImportFacade, type ExportRequest, type ExportRequestDto, type ExternalAuth, type ExternalAuthDto, ExternalAuthsFacade, type ExternalCalendar, type ExternalCalendarIntegration, type ExternalCalendarIntegrationForCreateOrUpdate, type ExternalCalendarIntegrationParameters, type Feedback, type FeedbackDto, type FeedbackOptions, type FeedbackOptionsDto, type FileInfo, type FileInfoDto, type FileMetadataErrorDetail, FileMetadataErrorReason, FileMetadataFailureAt, FileMetadataOperation, type FreeCheckInSlot, type Gender, GenderValues, type GenerateReportReq, type GenerateReportReqDto, type GenerateReportResp, type GenerateReportRespDto, type GenerateSecurityTokenReq, type GenerateSecurityTokenReqDto, type GenerateSecurityTokenResp, type GenerateSecurityTokenRespDto, type GetCalendarOptions, type GetCaseOptions, type GetCaseParticipationCountResp, type GetCaseParticipationCountRespDto, type GetCheckInScheduleReq, type GetCheckInScheduleReqDto, type GetCheckInScheduleResp, type GetCheckInScheduleRespDto, type GetContactOptions, type GetContextOptions, type GetLoyaltyCardOptions, type GetLoyaltySystemOptions, type GetLoyaltySystemsStatisticsReq, type GetLoyaltySystemsStatisticsReqDto, type GetLoyaltySystemsStatisticsResp, type GetLoyaltySystemsStatisticsRespDto, type GetNoteOptions, type GetParticipationCountRespDto, type GetReCheckInScheduleReq, type GetReCheckInScheduleReqDto, type GetResourceOptions, type GetServiceOptions, type GetServiceWorkloadInfoRequest, type GetServiceWorkloadInfoRequestDto, type GetServiceWorkloadInfoResp, type GetServiceWorkloadInfoRespDto, type GetShareItemSessionReq, type GetShareItemSessionReqDto, type GetTimetableStatisticsRequest, type GetTimetableStatisticsRequestDto, type GetTimetableStatisticsResponseDto, type GetTorrowIdResp, type GetTorrowIdRespDto, type GroupStatus, type GroupStatusDto, type Hobby, type HobbyDto, HttpClient, type HttpMethod, type HttpRequestInit, IdGeneratorFacade, type ImagePreviewSize, ImagePreviewSizeValues, type ImportByFileRequest, type ImportByFileRequestDto, type ImportByUniqueNameRequest, type ImportByUniqueNameRequestDto, type IncludeExcludeResp, type IncludeExcludeRespDto, type IncludeForUserReq, type IncludeForUserReqDto, type IncludeToGroupsReq, type IncludeToGroupsReqDto, type IncludeToParentReq, type IncludeToParentReqDto, type InitAddingAccountReq, type InitAddingAccountReqDto, type InitAddingAccountResp, type InitAddingAccountRespDto, type InitDeletingUserResp, type InitDeletingUserRespDto, type Integration, type IntegrationDto, type IntegrationEvent, IntegrationEventTypeValues, type IntegrationForCreateOrUpdate, IntegrationTypeValues, IntegrationsFacade, ItemFacade, type ItemFeedback, type ItemFeedbackDto, ItemPatchEffectStep, type ItemPatchErrorDetail, type ItemPricePatchFields, type ItemPricePatchInfo, type ItemPricePatchProperties, type ItemPricePatchSetting, type ItemProperties, type ItemSortConditionDto, type ItemTagsListQuery, type ItemTextSearchQuery, type ItemViewSortConditionDto as ItemViewSortCondition, type ItemViewSortConditionDto, ItemViewSortConditionValueList, ItemViewSortConditionValues, type JsonArray, type JsonObject, type JsonPrimitive, type JsonValue, type KnownIntegration, type KnownServiceType, type LayoutTypeValue, LayoutTypeValues, type LoyaltyCardFilterCondition, type LoyaltyCardFilterConditionDto, type LoyaltyCardIssueType, LoyaltyCardIssueTypeValues, type LoyaltyCardItem, type LoyaltyCardItemDto, type LoyaltyCardItemForUpdate, type LoyaltyCardItemPatch, type LoyaltyParticipantsQuery as LoyaltyCardParticipantsQuery, type Participation as LoyaltyCardParticipation, type ParticipationResp as LoyaltyCardParticipationResp, type SendLinkOfItemReq as LoyaltyCardSendLinkReq, type SendLinkOfItemResp as LoyaltyCardSendLinkResp, type ShareItemReq as LoyaltyCardShareReq, type LoyaltyCardSortCondition, type LoyaltyCardSortConditionDto, LoyaltyCardSortConditionValues, type LoyaltyCardStateDto, LoyaltyCardStateValues, type LoyaltyCardSubscription, type LoyaltyCardSubscriptionDto, type LoyaltyCardSubscriptionPatch, type LoyaltyCardUpdateKeyInformation, LoyaltyCardUpdateKeyInformationValues, type LoyaltyCardUpdateNonKeyInformation, LoyaltyCardUpdateNonKeyInformationValues, type LoyaltyCardView, type LoyaltyCardViewDto, LoyaltyCardsFacade, type LoyaltyGroupListQuery, type LoyaltyPersonalListQuery, type LoyaltySystemInitialSubscriptionPatch, type LoyaltySystemItem, type LoyaltySystemItemDto, type LoyaltySystemItemForCreateOrUpdate, type LoyaltySystemItemForUpdate, type LoyaltySystemItemPatch, type LoyaltyParticipantsQuery as LoyaltySystemParticipantsQuery, type Participation as LoyaltySystemParticipation, type ParticipationResp as LoyaltySystemParticipationResp, type LoyaltySystemPersonalListQuery, type SendLinkOfItemReq as LoyaltySystemSendLinkReq, type SendLinkOfItemResp as LoyaltySystemSendLinkResp, type ShareItemReq as LoyaltySystemShareReq, type LoyaltySystemView, type LoyaltySystemViewDto, LoyaltySystemsFacade, type LoyaltySystemsStatisticsResp, type LoyaltySystemsStatisticsRespDto, type LoyaltyTransactionsQuery, type ManagedSolutionData, type MemorableDate, type Metrics, type NoteItem, type NoteItemDto, type NoteItemForCreateOrUpdate, type NoteItemPatch, type NoteType, type NoteTypeDto, NoteTypeValues, type NoteView, type NoteViewDto, NotesFacade, type NotificationWay, type NotificationWayDto, type ObjectInfoDto, type ObjectSortConditionDto, type OperationTypeDto, type OrderFilter, type OrderFilterDto, type OrderResp, type OrderRespDto, type OrderSearchQuery, type OrderViewSortConditionDto, type OtpErrorDetail, OtpErrorReason, type ParticipantStateDto as ParticipantState, type ParticipantStateDto, type ParticipantTypeDto as ParticipantType, type ParticipantTypeDto, type ParticipantView, type ParticipantViewDto, type Participation, type ParticipationDto, type ParticipationFieldRequirementType, ParticipationFieldRequirementTypeValues, type ParticipationFieldType, ParticipationFieldTypeValues, type ParticipationResp, type ParticipationRespDto, type PatchCaseReq, type PatchCaseReqDto, type PaymentProviderType, PaymentProviderTypeValues, type PersonalListQuery, type PersonalReminder, type PersonalReminderDto, type PersonalSolutionData, type PersonalSolutionDataDto, type PickOrderReq, type PickOrderReqDto, type PickOrderResp, type PickOrderRespDto, PinnedViewsFacade, type Place, type PlaceDto, type ProfileListResp, type ProfileListRespDto, type ProfileProperties, type ProfilePropertiesDto, type ProfileType, ProfileTypeValues, ProfilesFacade, type PublicityType, type PublicityTypeDto, type PutUrlResp, type PutUrlRespDto, type Rating, RawClient, type RawRequestOptions, type RefreshReq, type RefreshReqDto, type RegisterInfo, type RegisterUserForAccountResp, type RegisterUserForAccountRespDto, type RegistrationUserInfo, type RegistrationUserInfoDto, RelationsFacade, type RemoveProfileResp, type RemoveProfileRespDto, type ReportOptions, type ReportProperties, type ReportPropertiesBase, ReportsFacade, type ResolvedTorrowClientConfig, type ResourceBuildResult, ResourceBuilder, type ResourceGroup, type ResourceItem, type ResourceItemApiDto, type ResourceBehaviorSettings as ResourceItemBehaviorSettings, type ResourceItemForCreateOrUpdate, type ResourceItemPatch, type ResourceItemPatchFields, type ResourceMindMapView, type ResourceMindMapViewDto, type ResourcePaymentPatchParameters, type ResourcePaymentPatchProperties, type ResourceReportProperties, type ResourceServiceBindingOptions, type ResourceUsageConditionType, type ResourceView, type ResourceViewDto, ResourcesFacade, type ResourcesFilterOptions, type ResourcesRentReportProperties, type ReturnOrderReq, type ReturnOrderReqDto, type ReturnOrderResp, type ReturnOrderRespDto, type RevokeReq, type RevokeReqDto, type SaveItemToMindMapReq, type SaveItemToMindMapReqDto, SearchFacade, type SearchLoyaltyCardsReq, type SearchLoyaltyCardsReqDto, type SearchServiceResourcesReq, type SearchServiceResourcesReqDto, type SearchServiceResourcesResp, type SearchServiceResourcesRespDto, type SendCodeAccountType, SendCodeAccountTypeValueList, SendCodeAccountTypeValues, type SendCodeReq, type SendCodeReqDto, type SendCodeReqForOtp, type SendCodeResp, type SendCodeRespDto, type SendCommunicationCodeReq, type SendCommunicationCodeReqDto, type SendCommunicationCodeResp, type SendCommunicationCodeRespDto, type SendLinkOfItemReqDto, type SendLinkOfItemRespDto, type ServiceBehaviorSettings, type ServiceBehaviorSettingsIssue, ServiceBehaviorSettingsIssueReason, type ServiceBehaviorSettingsState, type ServiceBehaviorSettingsUpdateOptions, type ServiceBehaviorSettingsUpdateResult, type ServiceBuildResult, ServiceBuilder, ServiceCheckInWizardStepParameterName, ServiceCheckInWizardStepType, type ServiceDescription, type ServiceItem, type ServiceItemApiDto, type ServiceItemForCreateOrUpdate, type ServiceItemForUpdate, type ServiceItemPatch, ServiceOrderConflictErrorNameValues, type ServiceOrderConflictReason, type ServiceReportProperties, type ServiceResourceStepUsageType, type ServiceSessionDurationOptions, ServiceType, type ServiceTypePreset, ServiceTypePresetValues, type ServiceView, type ServiceViewDto, ServicesFacade, type ServicesResourcesReportProperties, type SessionDurationProperties, type SessionDurationPropertiesDto, type SessionDurationType, SessionDurationTypeValues, type SessionPrecisionType, SessionPrecisionTypeValues, type SetGroupItemReqDto, type ShareItemReq, type ShareItemReqDto, ShortUrlFacade, type SolutionData, type SolutionDataDto, type Filter as SolutionDataFilter, type StateManagementType, StateManagementTypeValues, type StepDescription, type StepDescriptionDto, type DictionarySortCondition as ThesaurusDictionarySortCondition, ThesaurusFacade, type TimePeriod, type TimeSelectionType, TimeSelectionTypeValues, type TimeSplitType, TimeSplitTypeValues, type TimeStepUiMode, TimeStepUiModeValues, type TimetableCase, type TimetableCaseDto, type TimetableDetailsVisibility, type TimetableDetailsVisibilityDto, type TimetableFilter, type TimetableFilterDto, type TimetableQueryOptions, type TimetableStatisticsResp, type TimetableStatisticsRespDto, type TimetableViewTypeValue, TimetableViewTypeValues, type TokenReq, type TokenReqDto, type TokenResp, type TokenRespDto, type TokenStatus, TokenStatusValueList, TokenStatusValues, type TorrowChildItemCreateOptions, TorrowClient, type TorrowClientConfig, TorrowIdError, type TorrowIdErrorReason, type TorrowItem, type TorrowItemCreateOptions, type TorrowItemDeleteOptions, type TorrowItemDto, type TorrowItemForCreateOrUpdate, type TorrowItemFromDto, type TorrowItemGetOptions, type TorrowItemPatchFields, type TorrowItemPatchImage, type TorrowItemPatchOptions, type TorrowItemPatchResult, type TorrowItemType, TorrowItemTypeValueList, TorrowItemTypeValues, type TorrowItemUpdateOptions, type TorrowItemView, type TorrowItemViewByTypeMap, type TorrowObject, type TorrowObjectDto, type TorrowObjectType, TorrowObjectTypeCode, type TorrowObjectTypeCodeValue, type TorrowObjectTypeDto, type TorrowOptions, type TorrowSdkEffect, TorrowSdkEffectArea, TorrowSdkEffectState, TorrowSdkError, TorrowSdkErrorCategory, type TorrowSdkErrorDetail, TorrowSdkErrorDomain, type TorrowSdkErrorInfo, type TorrowSdkErrorInit, type TorrowSdkHttpDetails, TorrowSdkRequestState, type TorrowSdkSensitiveDetails, type UnpackedTorrowId, type UnsetGroupItemReqDto, type UpdateAnnouncementStateReq, type UpdateAnnouncementStateReqDto, type UpdateCalendarItemOptions, type UpdateCaseItemOptions, type UpdateContactItemOptions, type UpdateContactPropertiesResp, type UpdateContactPropertiesRespDto, type UpdateFileIdResp, type UpdateFileIdRespDto, type UpdateItemAccountsReqDto, type UpdateItemGroupsReqDto, type UpdateMasterInfoReq, type UpdateMasterInfoReqDto, type UpdateOrderInfoReq, type UpdateOrderInfoReqDto, type UpdateOrderReq, type UpdateOrderReqDto, type UpdatePersonalListOrderReq, type UpdatePersonalListOrderReqDto, type UpdatePersonalListOrderResp, type UpdatePersonalListOrderRespDto, type UpdateProfilePropertiesResp, type UpdateProfilePropertiesRespDto, type UpdateResourceItemOptions, type UpdateServiceItemOptions, type UpdateViewListOrderReqDto, type UpdateViewListOrderRespDto, type UsageCondition, type UsageConditionType, UsageConditionTypeValues, type UsageType, UsageTypeValues, type UserAccessLevel, UserAccessLevelValues, type UserAccountsQuery, type UserCalendar, type UserCalendarDto, type UserDeliveryWay, type UserDeliveryWayDto, UserFacade, type UserFeedback, type UserFeedbackDto, type UserProfileItemForAdd, UserSettingsFacade, type UserSettingsInfo, type UserSettingsInfoDto, type UserTimetableQuery, UserViewsFacade, type VerificationMethod, VerificationMethodValueList, VerificationMethodValues, type VerifyCommunicationCodeReq, type VerifyCommunicationCodeReqDto, type VerifyCommunicationCodeResp, type VerifyCommunicationCodeRespDto, type VideoTelephony, type VideoTelephonyIntegration, type VideoTelephonyIntegrationForCreateOrUpdate, type VideoTelephonyIntegrationParameters, type ViewBlockSettings, type ViewInfo, type ViewInfoDto, type ViewListQuery, type ViewListRootQuery, type ViewOrderInput, ViewsFacade, type WebHookIntegration, type WebHookIntegrationForCreateOrUpdate, type WebHookIntegrationParameters, type WorkloadPeriod, type WorkloadPeriodDto, buildContextIconSvg, buildContextIconSvgBytes, cancelCaseParticipation, communicationHref, type components, createOrder, createServiceSessionDurationProperties, expandBookingWizardSteps, generateRid, generateServiceResourceGroupId, generateTorrowId, generateTorrowIdForOwner, getCase, getCheckInSchedule, getContextIconPresetFileName, getFreeCheckInSlots, getResourceGroupIdFromStep, getService, getServiceOrderConflictReason, getServiceResources, getServiceType, getServiceTypeFromSessionDurationProperties, getShardFromTorrowId, getStepParameter, getTicketPaymentUrl, getTicketPaymentUrlRaw, getTimeStepUiMode, getTorrowItemTypeFromTorrowId, getTorrowItemTypeFromTorrowIds, getTorrowObjectTypeFromTorrowId, isAccountType, isAuthCaptchaType, isAuthScope, isContextIconPreset, isDeviceType, isExternalCalendarIntegration, isFreeCheckInSlot, isItemViewSortCondition, isSendCodeAccountType, isServiceOrderConflictError, isStepFlag, isTokenRespReadyStatus, isTokenStatus, isTorrowItemType, isVerificationMethod, isVideoTelephonyIntegration, isWebHookIntegration, normalizePaymentUrl, packTorrowId, parseAccountType, parseAuthCaptchaType, parseAuthScope, parseContextIconPresetFromImage, parseDeviceType, parseSendCodeAccountType, parseTokenStatus, parseVerificationMethod, type paths, resolveCommunicationBrand, shouldSkipResourceStep, sortStepDescriptionsByOrder, torrowObjectTypeToCode, unpackTorrowId };
|
package/dist/index.js
CHANGED
|
@@ -16575,6 +16575,113 @@ var LoyaltySystemsFacade = class extends TorrowItemCoreFacade {
|
|
|
16575
16575
|
}
|
|
16576
16576
|
};
|
|
16577
16577
|
|
|
16578
|
+
// ../../src/resources/loyalty-cards/types.ts
|
|
16579
|
+
var LoyaltyCardStateValues = /* @__PURE__ */ ((LoyaltyCardStateValues2) => {
|
|
16580
|
+
LoyaltyCardStateValues2["Unknown"] = "UnknownLoyaltyCardState";
|
|
16581
|
+
LoyaltyCardStateValues2["Issued"] = "Issued";
|
|
16582
|
+
LoyaltyCardStateValues2["Actived"] = "Actived";
|
|
16583
|
+
LoyaltyCardStateValues2["Blocked"] = "Blocked";
|
|
16584
|
+
LoyaltyCardStateValues2["Closed"] = "Closed";
|
|
16585
|
+
return LoyaltyCardStateValues2;
|
|
16586
|
+
})(LoyaltyCardStateValues || {});
|
|
16587
|
+
|
|
16588
|
+
// ../../src/resources/loyalty-cards/loyalty-card-patch.ts
|
|
16589
|
+
function omitLoyaltyCardNumber(body) {
|
|
16590
|
+
const payload = { ...body };
|
|
16591
|
+
Reflect.deleteProperty(payload, "cardNumber");
|
|
16592
|
+
return payload;
|
|
16593
|
+
}
|
|
16594
|
+
function contactInformation(value) {
|
|
16595
|
+
return isItemPatchDtoObject(value) && Array.isArray(value.fields) && value.fields.length > 0 && value.fields.every(isItemPatchDtoObject);
|
|
16596
|
+
}
|
|
16597
|
+
function subscriptions(value) {
|
|
16598
|
+
if (!Array.isArray(value)) {
|
|
16599
|
+
return false;
|
|
16600
|
+
}
|
|
16601
|
+
const ids = /* @__PURE__ */ new Set();
|
|
16602
|
+
return value.every((item) => {
|
|
16603
|
+
if (!isItemPatchDtoObject(item) || typeof item.subscriptionId !== "string" || !isItemPatchReferenceId(item.subscriptionId) || ids.has(item.subscriptionId)) {
|
|
16604
|
+
return false;
|
|
16605
|
+
}
|
|
16606
|
+
ids.add(item.subscriptionId);
|
|
16607
|
+
for (const key of ["createDate", "beginDate", "endDate"]) {
|
|
16608
|
+
const date2 = item[key];
|
|
16609
|
+
if (date2 != null && (!(date2 instanceof Date) || !Number.isFinite(date2.getTime()))) {
|
|
16610
|
+
return false;
|
|
16611
|
+
}
|
|
16612
|
+
}
|
|
16613
|
+
if (item.image == null) {
|
|
16614
|
+
return true;
|
|
16615
|
+
}
|
|
16616
|
+
return isItemPatchDtoObject(item.image) && Object.keys(item.image).length === 1 && isItemPatchReferenceId(item.image.id);
|
|
16617
|
+
});
|
|
16618
|
+
}
|
|
16619
|
+
function createLoyaltyCardPatchAdapter() {
|
|
16620
|
+
let selectedSubscriptionIds;
|
|
16621
|
+
return {
|
|
16622
|
+
operation: "LoyaltyCardsFacade.patch",
|
|
16623
|
+
basePath: "/api/v1/loyaltycards",
|
|
16624
|
+
objectType: TorrowObjectTypeCode.LoyaltyCard,
|
|
16625
|
+
discriminator: "LoyaltyCardItem" /* LoyaltyCardItem */,
|
|
16626
|
+
fields: {
|
|
16627
|
+
contactId: { kind: "String" /* String */, nullable: true, validate: isItemPatchReferenceId },
|
|
16628
|
+
state: {
|
|
16629
|
+
kind: "String" /* String */,
|
|
16630
|
+
validate: (value) => value !== "UnknownLoyaltyCardState" /* Unknown */ && Object.values(LoyaltyCardStateValues).some((state) => state === value)
|
|
16631
|
+
},
|
|
16632
|
+
issueDate: { kind: "Date" /* Date */, nullable: true },
|
|
16633
|
+
expiredDate: { kind: "Date" /* Date */, nullable: true },
|
|
16634
|
+
contactInformation: { kind: "Object" /* Object */, validate: contactInformation },
|
|
16635
|
+
cardIssueInformation: { kind: "Object" /* Object */, nullable: true },
|
|
16636
|
+
allowedReferralProgramIds: {
|
|
16637
|
+
kind: "Array" /* Array */,
|
|
16638
|
+
validate: (value) => Array.isArray(value) && value.every(isItemPatchReferenceId)
|
|
16639
|
+
},
|
|
16640
|
+
subscriptions: { kind: "Array" /* Array */, validate: subscriptions }
|
|
16641
|
+
},
|
|
16642
|
+
validateFields: (fields) => {
|
|
16643
|
+
if (Array.isArray(fields.subscriptions)) {
|
|
16644
|
+
selectedSubscriptionIds = fields.subscriptions.map((item) => item.subscriptionId);
|
|
16645
|
+
}
|
|
16646
|
+
},
|
|
16647
|
+
assertSnapshot: (item) => {
|
|
16648
|
+
if (item.name == null || item.loyaltySystemId == null || item.contactInformation == null) {
|
|
16649
|
+
throw itemPatchError("InsufficientData" /* InsufficientData */);
|
|
16650
|
+
}
|
|
16651
|
+
if (typeof item.name !== "string" || !item.name.length || !isItemPatchReferenceId(item.loyaltySystemId) || !contactInformation(item.contactInformation)) {
|
|
16652
|
+
throw itemPatchError("InvalidResponse" /* InvalidResponse */);
|
|
16653
|
+
}
|
|
16654
|
+
const storedIds = /* @__PURE__ */ new Set();
|
|
16655
|
+
if (item.subscriptions != null) {
|
|
16656
|
+
if (!Array.isArray(item.subscriptions)) {
|
|
16657
|
+
throw itemPatchError("InvalidResponse" /* InvalidResponse */);
|
|
16658
|
+
}
|
|
16659
|
+
for (const subscription of item.subscriptions) {
|
|
16660
|
+
if (!isItemPatchDtoObject(subscription) || typeof subscription.subscriptionId !== "string" || !isItemPatchReferenceId(subscription.subscriptionId) || storedIds.has(subscription.subscriptionId)) {
|
|
16661
|
+
throw itemPatchError("InvalidResponse" /* InvalidResponse */);
|
|
16662
|
+
}
|
|
16663
|
+
storedIds.add(subscription.subscriptionId);
|
|
16664
|
+
}
|
|
16665
|
+
}
|
|
16666
|
+
if (selectedSubscriptionIds?.some((id) => !storedIds.has(id))) {
|
|
16667
|
+
throw itemPatchError("InvalidInput" /* InvalidInput */);
|
|
16668
|
+
}
|
|
16669
|
+
},
|
|
16670
|
+
prepare: (body) => omitLoyaltyCardNumber(body),
|
|
16671
|
+
project: (item) => projectLoyaltyCardItem(item),
|
|
16672
|
+
equalField: (key, before, after) => {
|
|
16673
|
+
if (key !== "subscriptions" || !Array.isArray(before)) {
|
|
16674
|
+
return void 0;
|
|
16675
|
+
}
|
|
16676
|
+
const comparable2 = before.map(
|
|
16677
|
+
(item) => isItemPatchDtoObject(item) && isItemPatchDtoObject(item.image) && isItemPatchReferenceId(item.image.id) ? { ...item, image: { id: item.image.id } } : item
|
|
16678
|
+
);
|
|
16679
|
+
return equalItemPatchValue(comparable2, after);
|
|
16680
|
+
},
|
|
16681
|
+
casRefusal: isItemPatchCasRefusal
|
|
16682
|
+
};
|
|
16683
|
+
}
|
|
16684
|
+
|
|
16578
16685
|
// ../../src/resources/loyalty-cards/LoyaltyCardsFacade.ts
|
|
16579
16686
|
var BASE18 = "/api/v1/loyaltycards";
|
|
16580
16687
|
var LOYALTY_CARD_SOCIAL_OPTS = { withGroupListEndpoint: false };
|
|
@@ -16587,6 +16694,15 @@ var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
|
|
|
16587
16694
|
constructor(http) {
|
|
16588
16695
|
super(http, BASE18, LOYALTY_CARD_SOCIAL_OPTS);
|
|
16589
16696
|
}
|
|
16697
|
+
/**
|
|
16698
|
+
* Изменяет выбранные поля карты через Full GET и максимум один CAS PUT.
|
|
16699
|
+
* Пропуск сохраняет поле; вложенные значения заменяются целиком. Name/image производные.
|
|
16700
|
+
* Номер карты доступен только для чтения. Draft: backend cleanup общего файла шаблона требует live-приёмки. Нет retry/readback.
|
|
16701
|
+
* Effects описывают root write, а не транзакцию файлов, очередей и финансов.
|
|
16702
|
+
*/
|
|
16703
|
+
patch(itemId, fields, options) {
|
|
16704
|
+
return patchItem(this.http, itemId, fields, options, createLoyaltyCardPatchAdapter());
|
|
16705
|
+
}
|
|
16590
16706
|
/**
|
|
16591
16707
|
* Отображаемый аватар из свежей Full-карточки за один GET; отсутствие → null.
|
|
16592
16708
|
* Сервер уже применил наследование изображения программы. image/info читает собственный файл карты,
|
|
@@ -16618,15 +16734,15 @@ var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
|
|
|
16618
16734
|
validateInput: () => validateFileMetadataId(subscriptionId),
|
|
16619
16735
|
readItem: (id, readSignal) => this.readFileMetadataItem(id, readSignal),
|
|
16620
16736
|
selectFile: (item) => {
|
|
16621
|
-
const
|
|
16622
|
-
if (
|
|
16737
|
+
const subscriptions2 = item.subscriptions;
|
|
16738
|
+
if (subscriptions2 == null) {
|
|
16623
16739
|
return null;
|
|
16624
16740
|
}
|
|
16625
|
-
if (!Array.isArray(
|
|
16741
|
+
if (!Array.isArray(subscriptions2)) {
|
|
16626
16742
|
throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
|
|
16627
16743
|
}
|
|
16628
16744
|
const ids = /* @__PURE__ */ new Set();
|
|
16629
|
-
for (const subscription of
|
|
16745
|
+
for (const subscription of subscriptions2) {
|
|
16630
16746
|
if (subscription === null || typeof subscription !== "object" || Array.isArray(subscription)) {
|
|
16631
16747
|
throw fileMetadataError("InvalidResponse" /* InvalidResponse */);
|
|
16632
16748
|
}
|
|
@@ -16642,7 +16758,7 @@ var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
|
|
|
16642
16758
|
}
|
|
16643
16759
|
ids.add(id);
|
|
16644
16760
|
}
|
|
16645
|
-
return
|
|
16761
|
+
return subscriptions2.find((subscription) => subscription.subscriptionId === subscriptionId)?.image;
|
|
16646
16762
|
}
|
|
16647
16763
|
});
|
|
16648
16764
|
}
|
|
@@ -16710,7 +16826,7 @@ var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
|
|
|
16710
16826
|
signal: options?.signal
|
|
16711
16827
|
}).then((items) => projectReadList(items, (dto) => projectAccountingTransaction(dto)));
|
|
16712
16828
|
}
|
|
16713
|
-
/** `PUT /api/v1/loyaltycards/{body.id}
|
|
16829
|
+
/** `PUT /api/v1/loyaltycards/{body.id}`; server-owned cardNumber исключается из копии тела. */
|
|
16714
16830
|
update(body, options) {
|
|
16715
16831
|
const itemId = requireItemUpdateId(body, "Loyalty card");
|
|
16716
16832
|
return this.http.requestJson({
|
|
@@ -16720,7 +16836,7 @@ var LoyaltyCardsFacade = class extends TorrowItemCoreFacade {
|
|
|
16720
16836
|
checkVersion: options?.checkVersion,
|
|
16721
16837
|
isNeedAnnouncement: options?.isNeedAnnouncement
|
|
16722
16838
|
},
|
|
16723
|
-
body,
|
|
16839
|
+
body: omitLoyaltyCardNumber(body),
|
|
16724
16840
|
signal: options?.signal
|
|
16725
16841
|
}).then((dto) => projectLoyaltyCardItem(dto));
|
|
16726
16842
|
}
|
|
@@ -18984,6 +19100,7 @@ export {
|
|
|
18984
19100
|
LayoutTypeValues,
|
|
18985
19101
|
LoyaltyCardIssueTypeValues,
|
|
18986
19102
|
LoyaltyCardSortConditionValues,
|
|
19103
|
+
LoyaltyCardStateValues,
|
|
18987
19104
|
LoyaltyCardUpdateKeyInformationValues,
|
|
18988
19105
|
LoyaltyCardUpdateNonKeyInformationValues,
|
|
18989
19106
|
LoyaltyCardsFacade,
|