@antcde/connect-ts 0.4.20-rc.1 → 0.4.20-rc.2

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.
Files changed (86) hide show
  1. package/build/index.d.ts +34 -2
  2. package/build/index.d.ts.map +1 -1
  3. package/build/index.js +3 -8
  4. package/build/services/{AppService/types/appManifest.d.ts → AppManifest.d.ts} +1 -16
  5. package/build/services/AppManifest.d.ts.map +1 -0
  6. package/build/services/AppService.d.ts +57 -0
  7. package/build/services/AppService.d.ts.map +1 -0
  8. package/build/services/AppService.js +47 -0
  9. package/build/services/AppService.types.d.ts +173 -0
  10. package/build/services/AppService.types.d.ts.map +1 -0
  11. package/build/services/Notifications/NotificationService.d.ts +2 -23
  12. package/build/services/Notifications/NotificationService.d.ts.map +1 -1
  13. package/build/services/Notifications/NotificationService.js +0 -5
  14. package/build/services/TableService.js +7 -7
  15. package/build/services/TaskService.types.d.ts.map +1 -1
  16. package/build/services/UserService.d.ts +0 -2
  17. package/build/services/UserService.d.ts.map +1 -1
  18. package/package.json +1 -1
  19. package/build/service-runtime.d.ts +0 -5
  20. package/build/service-runtime.d.ts.map +0 -1
  21. package/build/service-runtime.js +0 -6
  22. package/build/service-types-app.d.ts +0 -2
  23. package/build/service-types-app.d.ts.map +0 -1
  24. package/build/service-types-app.js +0 -3
  25. package/build/service-types.d.ts +0 -33
  26. package/build/service-types.d.ts.map +0 -1
  27. package/build/service-types.js +0 -7
  28. package/build/services/AppService/factory/assignments.d.ts +0 -57
  29. package/build/services/AppService/factory/assignments.d.ts.map +0 -1
  30. package/build/services/AppService/factory/assignments.js +0 -30
  31. package/build/services/AppService/factory/channels.d.ts +0 -25
  32. package/build/services/AppService/factory/channels.d.ts.map +0 -1
  33. package/build/services/AppService/factory/channels.js +0 -17
  34. package/build/services/AppService/factory/formData.d.ts +0 -14
  35. package/build/services/AppService/factory/formData.d.ts.map +0 -1
  36. package/build/services/AppService/factory/formData.js +0 -50
  37. package/build/services/AppService/factory/subscriptions.d.ts +0 -73
  38. package/build/services/AppService/factory/subscriptions.d.ts.map +0 -1
  39. package/build/services/AppService/factory/subscriptions.js +0 -39
  40. package/build/services/AppService/index.d.ts +0 -66
  41. package/build/services/AppService/index.d.ts.map +0 -1
  42. package/build/services/AppService/index.js +0 -80
  43. package/build/services/AppService/types/accessRequests.d.ts +0 -93
  44. package/build/services/AppService/types/accessRequests.d.ts.map +0 -1
  45. package/build/services/AppService/types/app.d.ts +0 -243
  46. package/build/services/AppService/types/app.d.ts.map +0 -1
  47. package/build/services/AppService/types/app.js +0 -4
  48. package/build/services/AppService/types/appCategories.d.ts +0 -16
  49. package/build/services/AppService/types/appCategories.d.ts.map +0 -1
  50. package/build/services/AppService/types/appChangelog.d.ts +0 -31
  51. package/build/services/AppService/types/appChangelog.d.ts.map +0 -1
  52. package/build/services/AppService/types/appChangelog.js +0 -1
  53. package/build/services/AppService/types/appManifest.d.ts.map +0 -1
  54. package/build/services/AppService/types/appManifest.js +0 -4
  55. package/build/services/AppService/types/appMedia.d.ts +0 -101
  56. package/build/services/AppService/types/appMedia.d.ts.map +0 -1
  57. package/build/services/AppService/types/appMedia.js +0 -1
  58. package/build/services/AppService/types/appRequests.d.ts +0 -107
  59. package/build/services/AppService/types/appRequests.d.ts.map +0 -1
  60. package/build/services/AppService/types/appRequests.js +0 -1
  61. package/build/services/AppService/types/channels.d.ts +0 -45
  62. package/build/services/AppService/types/channels.d.ts.map +0 -1
  63. package/build/services/AppService/types/channels.js +0 -1
  64. package/build/services/AppService/types/pricingTiers.d.ts +0 -85
  65. package/build/services/AppService/types/pricingTiers.d.ts.map +0 -1
  66. package/build/services/AppService/types/pricingTiers.js +0 -1
  67. package/build/services/AppService/types/publisherStats.d.ts +0 -20
  68. package/build/services/AppService/types/publisherStats.d.ts.map +0 -1
  69. package/build/services/AppService/types/publisherStats.js +0 -1
  70. package/build/services/AppService/types/releaseChannels.d.ts +0 -84
  71. package/build/services/AppService/types/releaseChannels.d.ts.map +0 -1
  72. package/build/services/AppService/types/releaseChannels.js +0 -1
  73. package/build/services/AppService/types/seats.d.ts +0 -184
  74. package/build/services/AppService/types/seats.d.ts.map +0 -1
  75. package/build/services/AppService/types/seats.js +0 -4
  76. package/build/services/AppService/types/subscriptions.d.ts +0 -182
  77. package/build/services/AppService/types/subscriptions.d.ts.map +0 -1
  78. package/build/services/AppService/types/subscriptions.js +0 -1
  79. package/build/services/AppService/types.d.ts +0 -14
  80. package/build/services/AppService/types.d.ts.map +0 -1
  81. package/build/services/AppService/types.js +0 -16
  82. package/build/services/Websockets/StoreEvents.d.ts +0 -14
  83. package/build/services/Websockets/StoreEvents.d.ts.map +0 -1
  84. package/build/services/Websockets/StoreEvents.js +0 -5
  85. /package/build/services/{AppService/types/accessRequests.js → AppManifest.js} +0 -0
  86. /package/build/services/{AppService/types/appCategories.js → AppService.types.js} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-types-app.d.ts","sourceRoot":"","sources":["../src/service-types-app.ts"],"names":[],"mappings":"AAGA,YAAY,EACV,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,SAAS,EACT,GAAG,EACH,aAAa,EACb,eAAe,EACf,WAAW,EACX,sBAAsB,EACtB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,qBAAqB,EACrB,kBAAkB,EAClB,gBAAgB,EAChB,gBAAgB,EAChB,yBAAyB,EACzB,qBAAqB,EACrB,QAAQ,EACR,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EACV,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,0BAA0B,EAC1B,iBAAiB,EACjB,eAAe,EACf,wBAAwB,EACxB,oBAAoB,EACpB,qBAAqB,EACrB,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,uBAAuB,EACvB,kBAAkB,EAClB,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,EACtB,aAAa,EACb,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,2BAA2B,EAC3B,UAAU,EACV,iBAAiB,EACjB,OAAO,EACP,cAAc,EACd,YAAY,EACZ,WAAW,EACX,iBAAiB,EACjB,eAAe,EACf,4BAA4B,EAC5B,iBAAiB,EACjB,cAAc,EACd,4BAA4B,EAC5B,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,qBAAqB,EACrB,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,sBAAsB,GACvB,MAAM,uBAAuB,CAAA"}
@@ -1,3 +0,0 @@
1
- // AppService type re-exports. Split out from `service-types.ts` to keep that
2
- // barrel under the 250-line limit. Add new AppService type re-exports here.
3
- export {};
@@ -1,33 +0,0 @@
1
- export type * from './service-types-app';
2
- export type { Column, ColumnRequestBody, ColumnType, DuplicateColumnValuesError } from './services/ColumnService';
3
- export type { DmsBulkDeleteResponse, DmsBulkLabelResponse, DmsBulkRestoreResponse, DmsBulkUploadUrlItem, DmsBulkUploadUrlResponse, DmsCheckDuplicatesResponse, DmsDownloadUrlResponse, DmsDuplicateAction, DmsDuplicateInfo, DmsEffectivePermissionsResponse, DmsFile, DmsFilePermissions, DmsFileUploadUrl, DmsFileUsage, DmsFileUsagesResponse, DmsLabelAttachResponse, DmsLabelDetachResponse, DmsLabelSyncResponse, DmsListParams, DmsPaginatedResponse, DmsPermissionChainItem, DmsSearchParams, DmsSortColumn, DmsSortDirection, FileData, PaginationLinks, PaginationMeta, UploadFinishPayload, } from './services/DmsService';
4
- export type { AttachTarget, CreateLabelPayload, Label, LabelFilterParams, LabelFilterState, LabelOperator, LabelTargetType, ResourceLabel, ResourceType, UpdateLabelPayload, } from './services/LabelService';
5
- export type { InviteUserData, License, LicenseLimits, LicensePermissionMap, LicenseQueryParams, LicenseUserAccess, LicenseUserProjectAccess, LicenseUserResourcePermission, LicenseUserRoleDetail, LicenseUsersResponse } from './services/LicenseService';
6
- export type { NotificationEvent, NotificationFrequency, NotificationRule, NotificationTopic } from './services/Notifications/NotificationService';
7
- export type { ProjectMember } from './services/ProjectService';
8
- export type { FileResponse, Project, ProjectLimits, ProjectPermissionMap, ProjectQueryParams, ProjectRequestBody, ProjectShort, ProjectTypeFilters, ProjectTypeFilterValue, UpdateProjectBody } from './services/ProjectService';
9
- export type { ApplyPropagationTemplateBody, ApplyPropagationTemplateResponse, CreatePropagationTemplateBody, CreatePropagationTemplateItemBody, PropagationResourceType, PropagationRun, PropagationRunItem, PropagationRunItemStatus, PropagationRunStatus, PropagationService, PropagationTemplate, PropagationTemplateItem, PropagationTemplateItemPayload, PropagationTemplateItemPayloadApp, PropagationTemplateItemPayloadTable, ReorderPropagationTemplateItemsBody, UpdatePropagationTemplateBody, UpdatePropagationTemplateItemBody, } from './services/PropagationService';
10
- export type { BatchPermissionData, Permission, PermissionData, PermissionGroup, PermissionGroupItem, PermissionResourceType, UserPermission, UserRoleAndPermission, } from './services/RBAC/PermissionService';
11
- export type { RBACRoleService, Role, RoleData, RoleUpdate, UserRoleData } from './services/RBAC/RoleService';
12
- export type { RecordLockInfo } from './services/RecordLockService';
13
- export type { Base64Container, BulkUpdateRequest, BulkUpdateResponse, ImportAsyncResponse, ImportProgressEvent, ImportProgressStatus, ImportResponse, ImportSyncResponse, RecordCreateRequest, RecordDeleteRequest, RecordsImportData, } from './services/RecordService';
14
- export type { Reseller, ResellerForm, ResellerService } from './services/ResellerService';
15
- export type { ProjectType, ProjectTypeField, ProjectTypeFieldDataType, ResourceSchema, ResourceSchemaField, ResourceSchemaFieldDataType, ResourceTypeService, } from './services/ResourceTypeService';
16
- export type { SbsFiltersQueryParams, SbsRecord, SbsRecordUpdateRequest } from './services/SbsService';
17
- export type { PublicationScript, Script, ScriptItem } from './services/ScriptsService';
18
- export type { ColumnRelation, RelatedEntity, StoreRelationRequestData } from './services/Table/ColumnRelationService';
19
- export type { ColumnState, QueryState, TableQuery, TableQueryColumn, TableQueryService, TableQueryShort, } from './services/TableQueryService';
20
- export type { SingleTableQuery, Stats, Table, TableLimits, TableList, TablePermissions, TableRecord, TableRecords, TableRelation, TableRevision, TablesQuery, } from './services/TableService';
21
- export type { ClonePreviewRequest, ClonePreviewResult, CloneResponse, CloneWarning, CreateRelationConditionRequest, PushSyncResult, Task, TaskActivity, TaskAppendix, TaskCheck, TaskCheckUpdateRequest, TaskCloneRequest, TaskDetail, TaskPriority, TaskRelation, TaskRelationCondition, TaskRelationConditionError, TaskRelationConditionEvaluation, TaskRelationConditionOperator, TaskRelationDescendantStatus, TaskRelationReevaluateResponse, TaskRequestBody, TaskRule, TaskService, TaskShare, TaskStatus, TaskTemplateVersion, TemplateInstance, UpdateRelationConditionRequest, VersionCheck, VersionDiff, VersionDiffModifiedTask, VersionDiffRelation, VersionDiffTask, VersionSyncResult, } from './services/TaskService';
22
- /** @deprecated Use TaskCloneRequest from TaskService instead */
23
- export type { ApplyTemplateRequest, TaskTemplateService } from './services/TaskTemplateService';
24
- export type { CreateTokenBody, CreateTokenResponse, TokenRecord, UpdateTokenBody, UpdateTokenResponse } from './services/TokenService';
25
- export type { AuthLicense, AuthUser, FileInRequest, RegistrationResponse, RegistrationUser, TwoFactorDisableResponse, TwoFactorEnableResponse, TwoFactorGenerateResponse, User, UserShort, } from './services/UserService';
26
- export type { ActionOperation, AuthType, ConfigResponse, HTTPMethod, } from './services/Webhook/ConfigService';
27
- export type { Event } from './services/Webhook/EventService';
28
- export type { ExecutionHistoryFilters, TriggerExecutionHistory, TriggerExecutionHistoryDetail, } from './services/Webhook/TriggerHistoryService';
29
- export type { Trigger, TriggerableType, TriggerExecutionResult, TriggerRequestBody, } from './services/Webhook/TriggerService';
30
- export type { DmsFileAction, DmsFileBatchChangeItem, DmsFileChangedEvent, DmsFileEventData, DmsFilesBatchChangedEvent, DmsWebSocketEvent, } from './services/Websockets/DmsEvents';
31
- export type { AppVersionPublishedEvent, StoreWebSocketEvent, } from './services/Websockets/StoreEvents';
32
- export type { Blueprint, BlueprintRequest, BlueprintResult } from './services/WorkflowService';
33
- //# sourceMappingURL=service-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"service-types.d.ts","sourceRoot":"","sources":["../src/service-types.ts"],"names":[],"mappings":"AAOA,mBAAmB,qBAAqB,CAAA;AACxC,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAE,UAAU,EAAE,0BAA0B,EAAE,MAAM,0BAA0B,CAAA;AACjH,YAAY,EACV,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACtB,oBAAoB,EACpB,wBAAwB,EACxB,0BAA0B,EAC1B,sBAAsB,EACtB,kBAAkB,EAClB,gBAAgB,EAChB,+BAA+B,EAC/B,OAAO,EACP,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACZ,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,EACtB,oBAAoB,EACpB,aAAa,EACb,oBAAoB,EACpB,sBAAsB,EACtB,eAAe,EACf,aAAa,EACb,gBAAgB,EAChB,QAAQ,EACR,eAAe,EACf,cAAc,EACd,mBAAmB,GACpB,MAAM,uBAAuB,CAAA;AAC9B,YAAY,EACV,YAAY,EACZ,kBAAkB,EAClB,KAAK,EACL,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,eAAe,EACf,aAAa,EACb,YAAY,EACZ,kBAAkB,GACnB,MAAM,yBAAyB,CAAA;AAChC,YAAY,EAAE,cAAc,EAAE,OAAO,EAAE,aAAa,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,wBAAwB,EAAE,6BAA6B,EAAE,qBAAqB,EAAE,oBAAoB,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B,EAAE,WAAW,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AACtI,YAAY,EACV,WAAW,EACX,QAAQ,EACR,aAAa,EACb,oBAAoB,EACpB,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,yBAAyB,EACzB,IAAI,EACJ,SAAS,GACV,MAAM,wBAAwB,CAAA;AAC/B,YAAY,EACV,eAAe,EACf,QAAQ,EACR,cAAc,EACd,UAAU,GACX,MAAM,kCAAkC,CAAA;AACzC,YAAY,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAA;AAC5D,YAAY,EACV,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,GAC9B,MAAM,0CAA0C,CAAA;AACjD,YAAY,EACV,OAAO,EACP,eAAe,EACf,sBAAsB,EACtB,kBAAkB,GACnB,MAAM,mCAAmC,CAAA;AAC1C,YAAY,EACV,aAAa,EACb,sBAAsB,EACtB,mBAAmB,EACnB,gBAAgB,EAChB,yBAAyB,EACzB,iBAAiB,GAClB,MAAM,iCAAiC,CAAA;AACxC,YAAY,EACV,wBAAwB,EACxB,mBAAmB,GACpB,MAAM,mCAAmC,CAAA;AAC1C,YAAY,EAAE,SAAS,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA"}
@@ -1,7 +0,0 @@
1
- // Aggregated service type re-exports.
2
- // Kept separate from `index.ts` to keep that file under the 250-line limit.
3
- // Add new service-type re-exports here, organized alphabetically by service.
4
- //
5
- // This barrel is type-only — runtime values (functions, constants) live in
6
- // `./service-runtime` and are re-exported from `index.ts` directly.
7
- export {};
@@ -1,57 +0,0 @@
1
- import type { AppAssignment, AppDelegates, AppSeatPicture, LicenseAssignment, ProjectSeatView, SeatAllocation } from '../types';
2
- import type { AntHttpClient } from "../../../AntHttpClient";
3
- import type { DataWrapper } from "../../../types";
4
- /**
5
- * Store v3 seat allocation, assignment (license→project→role) and per-app
6
- * management delegation. Split out of the AppService factory to keep
7
- * `index.ts` focused; composed into `AppService` there.
8
- */
9
- export interface AppAssignmentFactory {
10
- fetchAppSeats: (appId: string) => Promise<DataWrapper<AppSeatPicture>>;
11
- fetchProjectSeats: (appId: string, projectId: string) => Promise<DataWrapper<ProjectSeatView>>;
12
- setProjectSeatAllocation: (appId: string, projectId: string, seats: number | null) => Promise<DataWrapper<SeatAllocation>>;
13
- assignAppRole: (appId: string, projectId: string, roleId: string, channelIds: string[]) => Promise<DataWrapper<AppAssignment>>;
14
- unassignAppRole: (appId: string, projectId: string, roleId: string) => Promise<DataWrapper<AppAssignment>>;
15
- assignAppUser: (appId: string, projectId: string, userId: string, channelIds: string[]) => Promise<DataWrapper<AppAssignment>>;
16
- unassignAppUser: (appId: string, projectId: string, userId: string) => Promise<DataWrapper<AppAssignment>>;
17
- assignAppLicenseRole: (appId: string, licenseId: string, roleId: string, channelIds: string[]) => Promise<DataWrapper<LicenseAssignment>>;
18
- unassignAppLicenseRole: (appId: string, licenseId: string, roleId: string) => Promise<DataWrapper<LicenseAssignment>>;
19
- assignAppLicenseUser: (appId: string, licenseId: string, userId: string, channelIds: string[]) => Promise<DataWrapper<LicenseAssignment>>;
20
- unassignAppLicenseUser: (appId: string, licenseId: string, userId: string) => Promise<DataWrapper<LicenseAssignment>>;
21
- setAppEveryone: (appId: string, projectId: string, channelIds: string[]) => Promise<DataWrapper<AppAssignment>>;
22
- clearAppEveryone: (appId: string, projectId: string) => Promise<DataWrapper<AppAssignment>>;
23
- setAppLicenseEveryone: (appId: string, licenseId: string, channelIds: string[]) => Promise<DataWrapper<LicenseAssignment>>;
24
- clearAppLicenseEveryone: (appId: string, licenseId: string) => Promise<DataWrapper<LicenseAssignment>>;
25
- setPreferredChannel: (appId: string, channelId: string) => Promise<DataWrapper<{
26
- app_id: string;
27
- channel_id: string;
28
- }>>;
29
- fetchAppManagers: (appId: string) => Promise<DataWrapper<AppDelegates>>;
30
- grantAppManageRole: (appId: string, roleId: string) => Promise<DataWrapper<{
31
- granted: boolean;
32
- }>>;
33
- revokeAppManageRole: (appId: string, roleId: string) => Promise<DataWrapper<{
34
- granted: boolean;
35
- }>>;
36
- grantAppManageUser: (appId: string, userId: string) => Promise<DataWrapper<{
37
- granted: boolean;
38
- }>>;
39
- revokeAppManageUser: (appId: string, userId: string) => Promise<DataWrapper<{
40
- granted: boolean;
41
- }>>;
42
- fetchProjectAssigners: (appId: string, projectId: string) => Promise<DataWrapper<AppDelegates>>;
43
- grantAppAssignRole: (appId: string, projectId: string, roleId: string) => Promise<DataWrapper<{
44
- granted: boolean;
45
- }>>;
46
- revokeAppAssignRole: (appId: string, projectId: string, roleId: string) => Promise<DataWrapper<{
47
- granted: boolean;
48
- }>>;
49
- grantAppAssignUser: (appId: string, projectId: string, userId: string) => Promise<DataWrapper<{
50
- granted: boolean;
51
- }>>;
52
- revokeAppAssignUser: (appId: string, projectId: string, userId: string) => Promise<DataWrapper<{
53
- granted: boolean;
54
- }>>;
55
- }
56
- export declare function newAppAssignmentFactory(client: AntHttpClient): AppAssignmentFactory;
57
- //# sourceMappingURL=assignments.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assignments.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/factory/assignments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,EACb,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,cAAc,EACf,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,aAAa,EAAE,+BAAuB;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAe;AAE1C;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IAEnC,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,CAAA;IAEtE,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAA;IAE9F,wB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E,OAAO,CAAA;KAAE,CAAC,CAAC,CAAA;CACtH;AAED,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,GAAG,oBAAoB,CA+CnF"}
@@ -1,30 +0,0 @@
1
- export function newAppAssignmentFactory(client) {
2
- return {
3
- fetchAppSeats: appId => client.get(`/store/resources/apps/${appId}/seats`),
4
- fetchProjectSeats: (appId, projectId) => client.get(`/store/resources/apps/${appId}/projects/${projectId}/seats`),
5
- setProjectSeatAllocation: (appId, projectId, seats) => client.put(`/store/resources/apps/${appId}/projects/${projectId}/allocation`, { seats }),
6
- assignAppRole: (appId, projectId, roleId, channelIds) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/assignments/roles/${roleId}`, { channel_ids: channelIds }),
7
- unassignAppRole: (appId, projectId, roleId) => client.delete(`/store/resources/apps/${appId}/projects/${projectId}/assignments/roles/${roleId}`),
8
- assignAppUser: (appId, projectId, userId, channelIds) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/assignments/users/${userId}`, { channel_ids: channelIds }),
9
- unassignAppUser: (appId, projectId, userId) => client.delete(`/store/resources/apps/${appId}/projects/${projectId}/assignments/users/${userId}`),
10
- assignAppLicenseRole: (appId, licenseId, roleId, channelIds) => client.post(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/roles/${roleId}`, { channel_ids: channelIds }),
11
- unassignAppLicenseRole: (appId, licenseId, roleId) => client.delete(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/roles/${roleId}`),
12
- assignAppLicenseUser: (appId, licenseId, userId, channelIds) => client.post(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/users/${userId}`, { channel_ids: channelIds }),
13
- unassignAppLicenseUser: (appId, licenseId, userId) => client.delete(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/users/${userId}`),
14
- setAppEveryone: (appId, projectId, channelIds) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/assignments/everyone`, { channel_ids: channelIds }),
15
- clearAppEveryone: (appId, projectId) => client.delete(`/store/resources/apps/${appId}/projects/${projectId}/assignments/everyone`),
16
- setAppLicenseEveryone: (appId, licenseId, channelIds) => client.post(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/everyone`, { channel_ids: channelIds }),
17
- clearAppLicenseEveryone: (appId, licenseId) => client.delete(`/store/resources/apps/${appId}/licenses/${licenseId}/assignments/everyone`),
18
- setPreferredChannel: (appId, channelId) => client.put(`/store/resources/apps/${appId}/preferred-channel`, { channel_id: channelId }),
19
- fetchAppManagers: appId => client.get(`/store/apps/${appId}/managers`),
20
- grantAppManageRole: (appId, roleId) => client.post(`/store/apps/${appId}/managers/roles/${roleId}`),
21
- revokeAppManageRole: (appId, roleId) => client.delete(`/store/apps/${appId}/managers/roles/${roleId}`),
22
- grantAppManageUser: (appId, userId) => client.post(`/store/apps/${appId}/managers/users/${userId}`),
23
- revokeAppManageUser: (appId, userId) => client.delete(`/store/apps/${appId}/managers/users/${userId}`),
24
- fetchProjectAssigners: (appId, projectId) => client.get(`/store/resources/apps/${appId}/projects/${projectId}/assigners`),
25
- grantAppAssignRole: (appId, projectId, roleId) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/assigners/roles/${roleId}`),
26
- revokeAppAssignRole: (appId, projectId, roleId) => client.delete(`/store/resources/apps/${appId}/projects/${projectId}/assigners/roles/${roleId}`),
27
- grantAppAssignUser: (appId, projectId, userId) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/assigners/users/${userId}`),
28
- revokeAppAssignUser: (appId, projectId, userId) => client.delete(`/store/resources/apps/${appId}/projects/${projectId}/assigners/users/${userId}`),
29
- };
30
- }
@@ -1,25 +0,0 @@
1
- import type { CreateReleaseChannelData, ReleaseChannel, ReleaseChannelMember, UpdateReleaseChannelData } from '../types';
2
- import type { MessageResponse } from "../../../AntConnect";
3
- import type { AntHttpClient } from "../../../AntHttpClient";
4
- import type { DataWrapper } from "../../../types";
5
- /**
6
- * Publisher release-channel CRUD + membership. Split out of the AppService
7
- * factory to keep `index.ts` focused; composed into `AppService` there.
8
- */
9
- export interface ReleaseChannelFactory {
10
- fetchReleaseChannels: (appId: string) => Promise<DataWrapper<ReleaseChannel[]>>;
11
- createReleaseChannel: (appId: string, data: CreateReleaseChannelData) => Promise<DataWrapper<ReleaseChannel>>;
12
- updateReleaseChannel: (appId: string, channelId: string, data: UpdateReleaseChannelData) => Promise<DataWrapper<ReleaseChannel>>;
13
- deleteReleaseChannel: (appId: string, channelId: string) => Promise<MessageResponse>;
14
- publishToChannel: (appId: string, channelId: string, versionId: string) => Promise<DataWrapper<ReleaseChannel>>;
15
- /** Clears the channel's active version (pulls it from this channel). */
16
- unpublishFromChannel: (appId: string, channelId: string) => Promise<DataWrapper<ReleaseChannel>>;
17
- fetchChannelMembers: (appId: string, channelId: string, params?: {
18
- page?: number;
19
- per_page?: number;
20
- }) => Promise<DataWrapper<ReleaseChannelMember[]>>;
21
- addChannelMember: (appId: string, channelId: string, licenseId: string) => Promise<DataWrapper<ReleaseChannelMember>>;
22
- removeChannelMember: (appId: string, channelId: string, licenseId: string) => Promise<MessageResponse>;
23
- }
24
- export declare function newReleaseChannelFactory(client: AntHttpClient): ReleaseChannelFactory;
25
- //# sourceMappingURL=channels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"channels.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/factory/channels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EACxB,cAAc,EACd,oBAAoB,EACpB,wBAAwB,EACzB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,eAAe,EAAE,4BAAoB;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,+BAAuB;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAe;AAG1C;;;GAGG;AACH,MAAM,WAAW,qBAAqB;IACpC,oBAAoB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC,CAAC,CAAA;IAC/E,oBAAoB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CAyBrF"}
@@ -1,17 +0,0 @@
1
- import qs from 'qs';
2
- export function newReleaseChannelFactory(client) {
3
- return {
4
- fetchReleaseChannels: appId => client.get(`/store/apps/${appId}/release-channels`),
5
- createReleaseChannel: (appId, data) => client.post(`/store/apps/${appId}/release-channels`, data),
6
- updateReleaseChannel: (appId, channelId, data) => client.put(`/store/apps/${appId}/release-channels/${channelId}`, data),
7
- deleteReleaseChannel: (appId, channelId) => client.delete(`/store/apps/${appId}/release-channels/${channelId}`),
8
- publishToChannel: (appId, channelId, versionId) => client.post(`/store/apps/${appId}/release-channels/${channelId}/publish`, { version_id: versionId }),
9
- unpublishFromChannel: (appId, channelId) => client.delete(`/store/apps/${appId}/release-channels/${channelId}/active-version`),
10
- fetchChannelMembers: (appId, channelId, params = {}) => {
11
- const queryString = qs.stringify(params, { skipNulls: true });
12
- return client.get(`/store/apps/${appId}/release-channels/${channelId}/members${queryString ? `?${queryString}` : ''}`);
13
- },
14
- addChannelMember: (appId, channelId, licenseId) => client.post(`/store/apps/${appId}/release-channels/${channelId}/members`, { license_id: licenseId }),
15
- removeChannelMember: (appId, channelId, licenseId) => client.delete(`/store/apps/${appId}/release-channels/${channelId}/members/${licenseId}`),
16
- };
17
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * Build a multipart `FormData` body for app-store uploads. Files/Blobs ride as
3
- * native parts; arrays expand to `key[]` entries; booleans serialise to
4
- * '1'/'0' (Laravel boolean-validation friendly); null/undefined are skipped.
5
- * Lets axios set the multipart boundary — never set Content-Type by hand.
6
- */
7
- export declare function toFormData(data: Record<string, unknown>): FormData;
8
- /**
9
- * Return a multipart `FormData` when the payload carries a File/Blob, otherwise
10
- * the plain object (sent as JSON). Lets a single endpoint accept either a file
11
- * upload or a scalar-only request without branching at every call site.
12
- */
13
- export declare function maybeFormData<T extends object>(data: T): T | FormData;
14
- //# sourceMappingURL=formData.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"formData.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/factory/formData.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,QAAQ,CAIlE;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,GAAG,QAAQ,CAErE"}
@@ -1,50 +0,0 @@
1
- /**
2
- * Build a multipart `FormData` body for app-store uploads. Files/Blobs ride as
3
- * native parts; arrays expand to `key[]` entries; booleans serialise to
4
- * '1'/'0' (Laravel boolean-validation friendly); null/undefined are skipped.
5
- * Lets axios set the multipart boundary — never set Content-Type by hand.
6
- */
7
- export function toFormData(data) {
8
- const form = new FormData();
9
- appendObject(form, data);
10
- return form;
11
- }
12
- /**
13
- * Return a multipart `FormData` when the payload carries a File/Blob, otherwise
14
- * the plain object (sent as JSON). Lets a single endpoint accept either a file
15
- * upload or a scalar-only request without branching at every call site.
16
- */
17
- export function maybeFormData(data) {
18
- return hasBlob(data) ? toFormData(data) : data;
19
- }
20
- // Detect a File/Blob at any nesting depth so nested uploads still switch the
21
- // request to multipart (mirrors toFormData's recursive append).
22
- function hasBlob(value) {
23
- if (value instanceof Blob)
24
- return true;
25
- if (Array.isArray(value))
26
- return value.some(hasBlob);
27
- if (value !== null && typeof value === 'object')
28
- return Object.values(value).some(hasBlob);
29
- return false;
30
- }
31
- function appendObject(form, obj, prefix) {
32
- for (const [key, value] of Object.entries(obj))
33
- appendValue(form, prefix ? `${prefix}[${key}]` : key, value);
34
- }
35
- function appendValue(form, key, value) {
36
- if (value === null || value === undefined)
37
- return;
38
- // File extends Blob — `instanceof Blob` covers both and avoids clashing with
39
- // the unrelated `File` interface declared elsewhere in the SDK.
40
- if (value instanceof Blob)
41
- form.append(key, value);
42
- else if (Array.isArray(value))
43
- value.forEach(item => appendValue(form, `${key}[]`, item));
44
- else if (typeof value === 'boolean')
45
- form.append(key, value ? '1' : '0');
46
- else if (typeof value === 'object')
47
- appendObject(form, value, key);
48
- else
49
- form.append(key, String(value));
50
- }
@@ -1,73 +0,0 @@
1
- import type { AssignSeatData, AvailableSeatUser, ConfirmPaymentData, CreatePricingTierData, CreateSubscriptionData, FetchAppSubscriptionsParams, PricingTier, RequestSeatChangeData, RequestTierChangeData, Subscription, SubscriptionSeat, UpdatePricingTierData, UpdateSubscriptionData } from '../types';
2
- import type { MessageResponse } from "../../../AntConnect";
3
- import type { AntHttpClient } from "../../../AntHttpClient";
4
- import type { DataWrapper } from "../../../types";
5
- export interface SubscriptionFactory {
6
- fetchPricingTiers: (appId: string, requestConfig?: Record<string, any>) => Promise<DataWrapper<PricingTier[]>>;
7
- createPricingTier: (appId: string, data: CreatePricingTierData) => Promise<DataWrapper<PricingTier>>;
8
- updatePricingTier: (appId: string, tierId: string, data: UpdatePricingTierData) => Promise<DataWrapper<PricingTier>>;
9
- deletePricingTier: (appId: string, tierId: string) => Promise<MessageResponse>;
10
- /**
11
- * Returns the current subscription for the current license, or `data: null`
12
- * when none exists. Prefers an active/trial/grace subscription; falls back to
13
- * a `pending_approval` purchase request so the App Detail page can render the
14
- * "pending approval" state instead of the purchase CTA. "No subscription yet"
15
- * is a normal state — callers must handle null without treating it as an error.
16
- */
17
- fetchCurrentSubscription: (appId: string) => Promise<DataWrapper<Subscription | null>>;
18
- fetchSubscription: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
19
- /**
20
- * Buyer requests to purchase a tier. The returned subscription is
21
- * `pending_approval` — access is NOT granted until the publisher approves.
22
- */
23
- createSubscription: (appId: string, data: CreateSubscriptionData) => Promise<DataWrapper<Subscription>>;
24
- updateSubscription: (appId: string, subscriptionId: string, data: UpdateSubscriptionData) => Promise<DataWrapper<Subscription>>;
25
- cancelSubscription: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
26
- /**
27
- * Buyer recovery: reactivate a cancelled subscription that is still inside
28
- * its paid period. Restores `trial`/`active` without a new purchase. The BE
29
- * returns 409 if the subscription is not cancelled or its period has already
30
- * ended (in that case create a fresh subscription instead).
31
- */
32
- reactivateSubscription: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
33
- /** Publisher inbox — pending purchase requests awaiting approval for this app. */
34
- fetchPendingApprovals: (appId: string) => Promise<DataWrapper<Subscription[]>>;
35
- /**
36
- * Publisher list of the app's subscriptions (active/trial/grace/expired/
37
- * cancelled). Excludes `pending_approval` by default — use `fetchPendingApprovals`
38
- * for the inbox. Drives the "Active subscriptions" list + renewal confirmation.
39
- */
40
- fetchAppSubscriptions: (appId: string, params?: FetchAppSubscriptionsParams) => Promise<DataWrapper<Subscription[]>>;
41
- /** Publisher approves a pending purchase request — grants access (trial/active). */
42
- approvePurchase: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
43
- /** Publisher denies a pending purchase request — no access is granted (cancelled). */
44
- denyPurchase: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
45
- /**
46
- * Publisher confirms the next recurring offline payment was received,
47
- * advancing the billing period. NOTE: this is a PUBLISHER (seller) action —
48
- * it replaces the former buyer-side `confirmSubscriptionPayment`.
49
- */
50
- confirmRenewal: (appId: string, subscriptionId: string, data?: ConfirmPaymentData) => Promise<DataWrapper<Subscription>>;
51
- /** Buyer requests a tier change. Returns 202 — change is applied on confirm. */
52
- requestTierChange: (appId: string, subscriptionId: string, data: RequestTierChangeData) => Promise<DataWrapper<Subscription>>;
53
- /** Publisher confirms a pending tier change request (records the offline payment). */
54
- confirmTierChange: (appId: string, subscriptionId: string, data?: ConfirmPaymentData) => Promise<DataWrapper<Subscription>>;
55
- /** Publisher rejects a pending tier change request. */
56
- rejectTierChange: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
57
- /**
58
- * Buyer requests a seat INCREASE (buying more seats — offline payment).
59
- * Returns 202; the new seat count is applied only when the publisher confirms.
60
- * Seat decreases use `updateSubscription` (no charge).
61
- */
62
- requestSeatChange: (appId: string, subscriptionId: string, data: RequestSeatChangeData) => Promise<DataWrapper<Subscription>>;
63
- /** Publisher confirms the offline payment — applies the new seat count. */
64
- confirmSeatChange: (appId: string, subscriptionId: string, data?: ConfirmPaymentData) => Promise<DataWrapper<Subscription>>;
65
- /** Publisher rejects a pending seat change request. */
66
- rejectSeatChange: (appId: string, subscriptionId: string) => Promise<DataWrapper<Subscription>>;
67
- fetchSubscriptionSeats: (appId: string, subscriptionId: string) => Promise<DataWrapper<SubscriptionSeat[]>>;
68
- assignSubscriptionSeat: (appId: string, subscriptionId: string, data: AssignSeatData) => Promise<DataWrapper<SubscriptionSeat>>;
69
- removeSubscriptionSeat: (appId: string, subscriptionId: string, seatId: string) => Promise<MessageResponse>;
70
- fetchAvailableSeatUsers: (appId: string, subscriptionId: string) => Promise<DataWrapper<AvailableSeatUser[]>>;
71
- }
72
- export declare function newSubscriptionFactory(client: AntHttpClient): SubscriptionFactory;
73
- //# sourceMappingURL=subscriptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"subscriptions.d.ts","sourceRoot":"","sources":["../../../../src/services/AppService/factory/subscriptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,iBAAiB,EACjB,kBAAkB,EAClB,qBAAqB,EACrB,sBAAsB,EACtB,2BAA2B,EAC3B,WAAW,EACX,qBAAqB,EACrB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,qBAAqB,EACrB,sBAAsB,EACvB,MAAM,UAAU,CAAA;AACjB,OAAO,KAAK,EAAE,eAAe,EAAE,4BAAoB;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,+BAAuB;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,uBAAe;AAG1C,MAAM,WAAW,mBAAmB;IAClC,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,OAAO,CAAC,WAAW,C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AE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,qBAAqB,KAAK,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;IAC7H,2EAA2E;IAC3E,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,kBAAkB,KAAK,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;IAC3H,uDAAuD;IACvD,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAA;IAE/F,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,CAAC,CAAC,CAAA;IAC3G,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,IAAI,EAAE,cAAc,KAAK,OAAO,CAAC,WAAW,CAAC,gBAAgB,CAAC,CAAC,CAAA;IAC/H,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAC3G,uBAAuB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;CAC9G;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,aAAa,GAAG,mBAAmB,CAkEjF"}
@@ -1,39 +0,0 @@
1
- import qs from 'qs';
2
- export function newSubscriptionFactory(client) {
3
- return {
4
- // Pricing tiers
5
- fetchPricingTiers: (appId, requestConfig) => client.get(`/store/apps/${appId}/pricing-tiers`, requestConfig),
6
- createPricingTier: (appId, data) => client.post(`/store/apps/${appId}/pricing-tiers`, data),
7
- updatePricingTier: (appId, tierId, data) => client.put(`/store/apps/${appId}/pricing-tiers/${tierId}`, data),
8
- deletePricingTier: (appId, tierId) => client.delete(`/store/apps/${appId}/pricing-tiers/${tierId}`),
9
- // Subscriptions
10
- fetchCurrentSubscription: appId => client.get(`/store/apps/${appId}/subscriptions/current`),
11
- fetchSubscription: (appId, subscriptionId) => client.get(`/store/apps/${appId}/subscriptions/${subscriptionId}`),
12
- createSubscription: (appId, data) => client.post(`/store/apps/${appId}/subscriptions`, data),
13
- updateSubscription: (appId, subscriptionId, data) => client.put(`/store/apps/${appId}/subscriptions/${subscriptionId}`, data),
14
- cancelSubscription: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/cancel`),
15
- reactivateSubscription: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/reactivate`, {}),
16
- // Purchase approval (offline payment)
17
- fetchPendingApprovals: appId => client.get(`/store/apps/${appId}/subscriptions/pending`),
18
- fetchAppSubscriptions: (appId, params = {}) => {
19
- const queryString = qs.stringify(params, { skipNulls: true });
20
- return client.get(`/store/apps/${appId}/subscriptions${queryString ? `?${queryString}` : ''}`);
21
- },
22
- approvePurchase: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/approve`, {}),
23
- denyPurchase: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/deny`, {}),
24
- confirmRenewal: (appId, subscriptionId, data = {}) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/confirm-renewal`, data),
25
- // Tier change flow
26
- requestTierChange: (appId, subscriptionId, data) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/request-tier-change`, data),
27
- confirmTierChange: (appId, subscriptionId, data = {}) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/confirm-tier-change`, data),
28
- rejectTierChange: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/reject-tier-change`, {}),
29
- // Seat change flow (increase = offline payment, publisher-approved)
30
- requestSeatChange: (appId, subscriptionId, data) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/request-seat-change`, data),
31
- confirmSeatChange: (appId, subscriptionId, data = {}) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/confirm-seat-change`, data),
32
- rejectSeatChange: (appId, subscriptionId) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/reject-seat-change`, {}),
33
- // Subscription seats
34
- fetchSubscriptionSeats: (appId, subscriptionId) => client.get(`/store/apps/${appId}/subscriptions/${subscriptionId}/seats`),
35
- assignSubscriptionSeat: (appId, subscriptionId, data) => client.post(`/store/apps/${appId}/subscriptions/${subscriptionId}/seats`, data),
36
- removeSubscriptionSeat: (appId, subscriptionId, seatId) => client.delete(`/store/apps/${appId}/subscriptions/${subscriptionId}/seats/${seatId}`),
37
- fetchAvailableSeatUsers: (appId, subscriptionId) => client.get(`/store/apps/${appId}/subscriptions/${subscriptionId}/seats/available-users`),
38
- };
39
- }
@@ -1,66 +0,0 @@
1
- import type { Project } from '../ProjectService';
2
- import type { AppAssignmentFactory } from './factory/assignments';
3
- import type { ReleaseChannelFactory } from './factory/channels';
4
- import type { SubscriptionFactory } from './factory/subscriptions';
5
- import type { AccessRequest, App, AppCategory, AppChangelogEntry, AppImpactAnalysis, AppMedia, AppMediaFormData, AppTemplate, AppUpdateResult, AppVersionFormData, AvailableUpdatesResponse, BatchUpdateAppsParams, BatchUpdateAppsResponse, CategoryRelationData, CreateAccessRequestData, FetchAccessRequestsParams, FetchAppChangelogParams, FetchAppsParams, ListApp, PublisherStatsApp, ReorderMediaFormData, RespondAccessRequestData, UpdateAppMediaFormData } from './types';
6
- import type { MessageResponse } from "../../AntConnect";
7
- import type { AntHttpClient } from "../../AntHttpClient";
8
- import type { DataWrapper } from "../../types";
9
- export * from './types';
10
- export interface AppService extends SubscriptionFactory, ReleaseChannelFactory, AppAssignmentFactory {
11
- createApp: (appData: AppTemplate) => Promise<DataWrapper<App>>;
12
- updateApp: (id: string, appData: Partial<AppTemplate>) => Promise<DataWrapper<App>>;
13
- deleteApp: (id: string) => Promise<MessageResponse>;
14
- /**
15
- * Force-delete a deprecated app, cascading the uninstall/deactivation across
16
- * every license and project. Only valid for deprecated apps (409 otherwise).
17
- */
18
- forceDeleteApp: (id: string) => Promise<MessageResponse>;
19
- deleteAppImage: (id: string) => Promise<MessageResponse>;
20
- createVersion: (appId: string, versionData: AppVersionFormData) => Promise<DataWrapper<App>>;
21
- deleteVersion: (appId: string, versionId: string) => Promise<MessageResponse>;
22
- fetchImpactAnalysis: (appId: string) => Promise<DataWrapper<AppImpactAnalysis>>;
23
- fetchAppContent: (appId: string, versionId: string, path: string) => Promise<any>;
24
- fetchVersionReadme: (appId: string, versionId: string) => Promise<any>;
25
- fetchVersionConfig: (appId: string, versionId: string) => Promise<any>;
26
- fetchVersionChangelog: (appId: string, versionId: string) => Promise<any>;
27
- fetchApps: (params: FetchAppsParams, requestConfig?: Record<string, any>) => Promise<DataWrapper<ListApp[]>>;
28
- fetchApp: (appId: string, requestConfig?: Record<string, any>) => Promise<App>;
29
- fetchAppProjects: (appId: string) => Promise<DataWrapper<Project[]>>;
30
- fetchPublisherStats: () => Promise<DataWrapper<PublisherStatsApp[]>>;
31
- requestAccess: (appId: string, data?: CreateAccessRequestData) => Promise<DataWrapper<AccessRequest>>;
32
- cancelAccessRequest: (requestId: string) => Promise<MessageResponse>;
33
- fetchMyAccessRequests: (params?: FetchAccessRequestsParams) => Promise<DataWrapper<AccessRequest[]>>;
34
- fetchAppAccessRequests: (appId: string, params?: FetchAccessRequestsParams, requestConfig?: Record<string, any>) => Promise<DataWrapper<AccessRequest[]>>;
35
- respondToAccessRequest: (requestId: string, data: RespondAccessRequestData) => Promise<DataWrapper<AccessRequest>>;
36
- revokeAccessRequest: (requestId: string) => Promise<DataWrapper<AccessRequest>>;
37
- installApp: (licenseId: string, versionId: string, channelId?: string) => Promise<DataWrapper<App>>;
38
- uninstallApp: (licenseId: string, versionId: string, force?: boolean) => Promise<DataWrapper<App>>;
39
- activateApp: (projectId: string, versionId: string, channelId?: string) => Promise<DataWrapper<App>>;
40
- deactivateApp: (projectId: string, versionId: string) => Promise<DataWrapper<App>>;
41
- setLicenseAppAutoUpdate: (licenseId: string, appId: string, enabled: boolean) => Promise<DataWrapper<App>>;
42
- setProjectAppAutoUpdate: (projectId: string, appId: string, enabled: boolean) => Promise<DataWrapper<App>>;
43
- setLicenseAppChannel: (licenseId: string, appId: string, channelId: string) => Promise<DataWrapper<App>>;
44
- setProjectAppChannel: (projectId: string, appId: string, channelId: string) => Promise<DataWrapper<App>>;
45
- linkApp: (taskId: string, appId: string) => Promise<DataWrapper<App>>;
46
- unlinkApp: (taskId: string, appId: string) => Promise<DataWrapper<App>>;
47
- /** Save (or clear) the app's restorable view state on a task↔app link. */
48
- saveAppState: (taskId: string, appId: string, state: Record<string, string> | null) => Promise<DataWrapper<App>>;
49
- deprecateApp: (appId: string, message?: string) => Promise<DataWrapper<App>>;
50
- undeprecateApp: (appId: string) => Promise<DataWrapper<App>>;
51
- updateInstalledApp: (appId: string) => Promise<DataWrapper<AppUpdateResult>>;
52
- batchUpdateApps: (params?: BatchUpdateAppsParams) => Promise<DataWrapper<BatchUpdateAppsResponse>>;
53
- fetchAvailableUpdates: () => Promise<DataWrapper<AvailableUpdatesResponse>>;
54
- fetchCategories: (params?: any) => Promise<DataWrapper<AppCategory[]>>;
55
- fetchCategory: (categoryId: string) => Promise<AppCategory>;
56
- updateAppCategories: (appId: string, data: CategoryRelationData) => Promise<DataWrapper<App>>;
57
- fetchAppMedia: (appId: string) => Promise<DataWrapper<AppMedia[]>>;
58
- uploadAppMedia: (appId: string, mediaData: AppMediaFormData) => Promise<DataWrapper<AppMedia>>;
59
- updateAppMedia: (appId: string, mediaId: string, mediaData: UpdateAppMediaFormData) => Promise<DataWrapper<AppMedia>>;
60
- deleteAppMedia: (appId: string, mediaId: string) => Promise<MessageResponse>;
61
- reorderAppMedia: (appId: string, data: ReorderMediaFormData) => Promise<MessageResponse>;
62
- fetchAppChangelog: (appId: string, params?: FetchAppChangelogParams) => Promise<DataWrapper<AppChangelogEntry[]>>;
63
- }
64
- export declare function newAppService(client: AntHttpClient): AppService;
65
- export default AppService;
66
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/AppService/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AACjE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAA;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAA;AAClE,OAAO,KAAK,EACV,aAAa,EACb,GAAG,EACH,WAAW,EACX,iBAAiB,EACjB,iBAAiB,EACjB,QAAQ,EACR,gBAAgB,EAChB,WAAW,EACX,eAAe,EACf,kBAAkB,EAClB,wBAAwB,EACxB,qBAAqB,EACrB,uBAAuB,EACvB,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,uBAAuB,EACvB,eAAe,EACf,OAAO,EACP,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,sBAAsB,EACvB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,eAAe,EAAE,yBAAoB;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,4BAAuB;AACpD,OAAO,KAAK,EAAE,WAAW,EAAE,oBAAe;AAO1C,cAAc,SAAS,CAAA;AAEvB,MAAM,WAAW,UAAW,SAAQ,mBAAmB,EAAE,qBAAqB,EAAE,oBAAoB;IAElG,SAAS,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,CAAA;IAC9D,SAAS,EAAE,CAAC,EAAE,EA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AAK,EAAE,MAAM,EAAE,SAAS,EAAE,gBAAgB,KAAK,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;IAC9F,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,sBAAsB,KAAK,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAAA;IACrH,cAAc,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAC5E,eAAe,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,KAAK,OAAO,CAAC,eAAe,CAAC,CAAA;IAGxF,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,uBAAuB,KAAK,OAAO,CAAC,WAAW,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;CAClH;AAED,wBAAgB,aAAa,CAAC,MAAM,EAAE,aAAa,GAAG,UAAU,CAgH/D;AAED,eAAe,UAAU,CAAA"}
@@ -1,80 +0,0 @@
1
- import qs from 'qs';
2
- import { newAppAssignmentFactory } from './factory/assignments';
3
- import { newReleaseChannelFactory } from './factory/channels';
4
- import { maybeFormData, toFormData } from './factory/formData';
5
- import { newSubscriptionFactory } from './factory/subscriptions';
6
- export * from './types';
7
- export function newAppService(client) {
8
- return {
9
- ...newSubscriptionFactory(client),
10
- ...newReleaseChannelFactory(client),
11
- ...newAppAssignmentFactory(client),
12
- // An icon File is sent as multipart; a scalar-only edit stays JSON. updateApp
13
- // is a PUT, but PHP doesn't parse multipart PUT bodies, so spoof it with POST
14
- // + `_method=PUT` when a file rides along.
15
- createApp: appData => client.post('/store/apps', maybeFormData(appData)),
16
- updateApp: (id, appData) => appData.image instanceof Blob
17
- ? client.post(`/store/apps/${id}`, toFormData({ ...appData, _method: 'PUT' }))
18
- : client.put(`/store/apps/${id}`, appData),
19
- deleteApp: id => client.delete(`/store/apps/${id}`),
20
- forceDeleteApp: id => client.delete(`/store/apps/${id}/force`),
21
- deleteAppImage: id => client.delete(`/store/apps/${id}/deleteAppImage`),
22
- createVersion: (appId, versionData) => client.post(`/store/apps/${appId}/versions`, maybeFormData(versionData)),
23
- deleteVersion: (appId, versionId) => client.delete(`/store/apps/${appId}/versions/${versionId}`),
24
- fetchImpactAnalysis: appId => client.get(`/store/apps/${appId}/impact-analysis`),
25
- fetchAppContent: (appId, versionId, path) => client.get(`/store/apps/${appId}/versions/${versionId}/contents/${path}`),
26
- fetchVersionReadme: (appId, versionId) => client.get(`/store/apps/${appId}/versions/${versionId}/readme`),
27
- fetchVersionConfig: (appId, versionId) => client.get(`/store/apps/${appId}/versions/${versionId}/config`),
28
- fetchVersionChangelog: (appId, versionId) => client.get(`/store/apps/${appId}/versions/${versionId}/changelog`),
29
- fetchApps: (params = {}, requestConfig) => {
30
- const queryString = qs.stringify(params, { skipNulls: true, arrayFormat: 'brackets' });
31
- return client.get(`/store/apps${queryString ? `?${queryString}` : ''}`, requestConfig);
32
- },
33
- fetchApp: (appId, requestConfig) => client.get(`/store/apps/${appId}`, requestConfig),
34
- fetchAppProjects: appId => client.get(`/store/apps/${appId}/projects`),
35
- fetchPublisherStats: () => client.get('/store/publisher/stats'),
36
- requestAccess: (appId, data = {}) => client.post(`/store/apps/${appId}/access-requests`, data),
37
- cancelAccessRequest: requestId => client.delete(`/store/access-requests/${requestId}/cancel`),
38
- fetchMyAccessRequests: (params = {}) => {
39
- const queryString = qs.stringify(params, { skipNulls: true });
40
- return client.get(`/store/access-requests/my${queryString ? `?${queryString}` : ''}`);
41
- },
42
- fetchAppAccessRequests: (appId, params = {}, requestConfig) => {
43
- const queryString = qs.stringify(params, { skipNulls: true });
44
- return client.get(`/store/apps/${appId}/access-requests${queryString ? `?${queryString}` : ''}`, requestConfig);
45
- },
46
- respondToAccessRequest: (requestId, data) => client.post(`/store/access-requests/${requestId}/respond`, data),
47
- revokeAccessRequest: requestId => client.post(`/store/access-requests/${requestId}/revoke`),
48
- installApp: (licenseId, versionId, channelId) => client.post(`/store/resources/apps-versions/${versionId}/licenses/${licenseId}`, channelId ? { channel_id: channelId } : undefined),
49
- uninstallApp: (licenseId, versionId, force) => client.delete(`/store/resources/apps-versions/${versionId}/licenses/${licenseId}${force ? '?force=true' : ''}`),
50
- activateApp: (projectId, versionId, channelId) => client.post(`/store/resources/apps-versions/${versionId}/projects/${projectId}`, channelId ? { channel_id: channelId } : undefined),
51
- deactivateApp: (projectId, versionId) => client.delete(`/store/resources/apps-versions/${versionId}/projects/${projectId}`),
52
- setLicenseAppAutoUpdate: (licenseId, appId, enabled) => client.post(`/store/resources/apps/${appId}/licenses/${licenseId}/auto-update`, { enabled }),
53
- setProjectAppAutoUpdate: (projectId, appId, enabled) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/auto-update`, { enabled }),
54
- setLicenseAppChannel: (licenseId, appId, channelId) => client.post(`/store/resources/apps/${appId}/licenses/${licenseId}/channel`, { channel_id: channelId }),
55
- setProjectAppChannel: (projectId, appId, channelId) => client.post(`/store/resources/apps/${appId}/projects/${projectId}/channel`, { channel_id: channelId }),
56
- linkApp: (taskId, appId) => client.post(`/store/resources/apps/${appId}/tasks/${taskId}`),
57
- unlinkApp: (taskId, appId) => client.delete(`/store/resources/apps/${appId}/tasks/${taskId}`),
58
- saveAppState: (taskId, appId, state) => client.patch(`/store/resources/apps/${appId}/tasks/${taskId}`, { app_state: state }),
59
- deprecateApp: (appId, message) => client.post(`/store/apps/${appId}/deprecate`, { message }),
60
- undeprecateApp: appId => client.post(`/store/apps/${appId}/undeprecate`),
61
- updateInstalledApp: appId => client.post(`/store/apps/${appId}/update`),
62
- batchUpdateApps: (params = {}) => client.post('/store/resources/apps/batch-update', params),
63
- fetchAvailableUpdates: () => client.get('/store/resources/apps/updates-available'),
64
- fetchCategories: (params = {}) => {
65
- const queryString = qs.stringify(params, { skipNulls: true, arrayFormat: 'brackets' });
66
- return client.get(`/store/app-categories${queryString ? `?${queryString}` : ''}`);
67
- },
68
- fetchCategory: categoryId => client.get(`/store/app-categories/${categoryId}`),
69
- updateAppCategories: (appId, data) => client.post(`/store/apps/${appId}/categories`, data),
70
- fetchAppMedia: appId => client.get(`/store/apps/${appId}/media`),
71
- uploadAppMedia: (appId, mediaData) => client.post(`/store/apps/${appId}/media`, maybeFormData(mediaData)),
72
- updateAppMedia: (appId, mediaId, mediaData) => client.put(`/store/apps/${appId}/media/${mediaId}`, mediaData),
73
- deleteAppMedia: (appId, mediaId) => client.delete(`/store/apps/${appId}/media/${mediaId}`),
74
- reorderAppMedia: (appId, data) => client.post(`/store/apps/${appId}/media/reorder`, data),
75
- fetchAppChangelog: (appId, params = {}) => {
76
- const queryString = qs.stringify(params, { skipNulls: true });
77
- return client.get(`/store/apps/${appId}/changelog${queryString ? `?${queryString}` : ''}`);
78
- },
79
- };
80
- }