@edifice.io/community-client-rest-rn 1.0.0-develop.20251217144648 → 1.0.0-develop.20251218095105

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 (113) hide show
  1. package/clients/adapters/fetch-adapter.d.ts +12 -0
  2. package/clients/adapters/fetch-adapter.js +82 -0
  3. package/clients/adapters/fetch-adapter.js.map +1 -0
  4. package/clients/adapters/http-adapter.d.ts +8 -0
  5. package/clients/adapters/http-adapter.js +2 -0
  6. package/clients/adapters/http-adapter.js.map +1 -0
  7. package/clients/adapters/http-service-adapter.d.ts +14 -0
  8. package/clients/adapters/http-service-adapter.js +31 -0
  9. package/clients/adapters/http-service-adapter.js.map +1 -0
  10. package/clients/announcement.client.d.ts +1 -1
  11. package/clients/announcement.client.js +1 -1
  12. package/clients/announcement.client.js.map +1 -1
  13. package/clients/base-api.client.d.ts +29 -0
  14. package/clients/base-api.client.js +61 -0
  15. package/clients/base-api.client.js.map +1 -0
  16. package/clients/community.client.d.ts +1 -1
  17. package/clients/community.client.js +1 -1
  18. package/clients/community.client.js.map +1 -1
  19. package/clients/discussion.client.d.ts +1 -1
  20. package/clients/discussion.client.js +1 -1
  21. package/clients/discussion.client.js.map +1 -1
  22. package/clients/errors/api-error.d.ts +11 -0
  23. package/clients/errors/api-error.js +46 -0
  24. package/clients/errors/api-error.js.map +1 -0
  25. package/clients/folder.client.d.ts +2 -2
  26. package/clients/folder.client.js +1 -1
  27. package/clients/folder.client.js.map +1 -1
  28. package/clients/index.d.ts +4 -1
  29. package/clients/index.js +4 -1
  30. package/clients/index.js.map +1 -1
  31. package/clients/invitation.client.d.ts +1 -1
  32. package/clients/invitation.client.js +1 -1
  33. package/clients/invitation.client.js.map +1 -1
  34. package/clients/membership.client.d.ts +1 -1
  35. package/clients/membership.client.js +1 -1
  36. package/clients/membership.client.js.map +1 -1
  37. package/clients/resource.client.d.ts +1 -1
  38. package/clients/resource.client.js +1 -1
  39. package/clients/resource.client.js.map +1 -1
  40. package/clients/wiki.client.d.ts +1 -1
  41. package/clients/wiki.client.js +1 -1
  42. package/clients/wiki.client.js.map +1 -1
  43. package/decorators/custom-type.decorator.browser.d.ts +3 -0
  44. package/decorators/custom-type.decorator.browser.js +10 -0
  45. package/decorators/custom-type.decorator.browser.js.map +1 -0
  46. package/decorators/custom-type.decorator.node.d.ts +3 -0
  47. package/dtos/announcement.js +2 -1
  48. package/dtos/announcement.js.map +1 -1
  49. package/dtos/base.js +2 -1
  50. package/dtos/base.js.map +1 -1
  51. package/dtos/common.js +1 -1
  52. package/dtos/common.js.map +1 -1
  53. package/dtos/community.js +2 -1
  54. package/dtos/community.js.map +1 -1
  55. package/dtos/discussion.js +1 -1
  56. package/dtos/discussion.js.map +1 -1
  57. package/dtos/folder.js +2 -1
  58. package/dtos/folder.js.map +1 -1
  59. package/dtos/invitation.js +2 -1
  60. package/dtos/invitation.js.map +1 -1
  61. package/dtos/membership.js +2 -1
  62. package/dtos/membership.js.map +1 -1
  63. package/dtos/resource.js +2 -1
  64. package/dtos/resource.js.map +1 -1
  65. package/dtos/wiki.js +1 -1
  66. package/dtos/wiki.js.map +1 -1
  67. package/package.json +2 -3
  68. package/tsconfig.browser.tsbuildinfo +1 -1
  69. package/clients/generated/clients/announcement.client.d.ts +0 -11
  70. package/clients/generated/clients/announcement.client.js +0 -30
  71. package/clients/generated/clients/announcement.client.js.map +0 -1
  72. package/clients/generated/clients/announcementBroker.client.d.ts +0 -4
  73. package/clients/generated/clients/announcementBroker.client.js +0 -7
  74. package/clients/generated/clients/announcementBroker.client.js.map +0 -1
  75. package/clients/generated/clients/app.client.d.ts +0 -4
  76. package/clients/generated/clients/app.client.js +0 -7
  77. package/clients/generated/clients/app.client.js.map +0 -1
  78. package/clients/generated/clients/community.client.d.ts +0 -13
  79. package/clients/generated/clients/community.client.js +0 -36
  80. package/clients/generated/clients/community.client.js.map +0 -1
  81. package/clients/generated/clients/communityInvitation.client.d.ts +0 -14
  82. package/clients/generated/clients/communityInvitation.client.js +0 -34
  83. package/clients/generated/clients/communityInvitation.client.js.map +0 -1
  84. package/clients/generated/clients/communityMembership.client.d.ts +0 -11
  85. package/clients/generated/clients/communityMembership.client.js +0 -27
  86. package/clients/generated/clients/communityMembership.client.js.map +0 -1
  87. package/clients/generated/clients/discussions.client.d.ts +0 -7
  88. package/clients/generated/clients/discussions.client.js +0 -17
  89. package/clients/generated/clients/discussions.client.js.map +0 -1
  90. package/clients/generated/clients/folder.client.d.ts +0 -12
  91. package/clients/generated/clients/folder.client.js +0 -32
  92. package/clients/generated/clients/folder.client.js.map +0 -1
  93. package/clients/generated/clients/index.d.ts +0 -14
  94. package/clients/generated/clients/index.js +0 -15
  95. package/clients/generated/clients/index.js.map +0 -1
  96. package/clients/generated/clients/loadTest.client.d.ts +0 -4
  97. package/clients/generated/clients/loadTest.client.js +0 -7
  98. package/clients/generated/clients/loadTest.client.js.map +0 -1
  99. package/clients/generated/clients/notification.client.d.ts +0 -4
  100. package/clients/generated/clients/notification.client.js +0 -7
  101. package/clients/generated/clients/notification.client.js.map +0 -1
  102. package/clients/generated/clients/resource.client.d.ts +0 -14
  103. package/clients/generated/clients/resource.client.js +0 -34
  104. package/clients/generated/clients/resource.client.js.map +0 -1
  105. package/clients/generated/clients/resourceEvent.client.d.ts +0 -4
  106. package/clients/generated/clients/resourceEvent.client.js +0 -7
  107. package/clients/generated/clients/resourceEvent.client.js.map +0 -1
  108. package/clients/generated/clients/userInvitation.client.d.ts +0 -10
  109. package/clients/generated/clients/userInvitation.client.js +0 -24
  110. package/clients/generated/clients/userInvitation.client.js.map +0 -1
  111. package/clients/generated/clients/wiki.client.d.ts +0 -6
  112. package/clients/generated/clients/wiki.client.js +0 -13
  113. package/clients/generated/clients/wiki.client.js.map +0 -1
@@ -1,11 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchAnnouncementDto, SearchAnnouncementResponseDto, CreateAnnouncementDto, AnnouncementDto, CountAnnouncementDto, UpdateAnnouncementDto } from "../../../dtos";
3
- export declare class AnnouncementClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findAll(id: number, query: SearchAnnouncementDto, options?: RequestOptions): Promise<SearchAnnouncementResponseDto>;
6
- create(id: number, createAnnouncementDto: CreateAnnouncementDto, options?: RequestOptions): Promise<AnnouncementDto>;
7
- count(id: number, publishedAfter?: Date, options?: RequestOptions): Promise<CountAnnouncementDto>;
8
- findOne(id: number, announcementId: number, options?: RequestOptions): Promise<AnnouncementDto>;
9
- update(id: number, announcementId: number, updateAnnouncementDto: UpdateAnnouncementDto, options?: RequestOptions): Promise<AnnouncementDto>;
10
- remove(id: number, announcementId: number, options?: RequestOptions): Promise<void>;
11
- }
@@ -1,30 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class AnnouncementClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findAll(id, query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities/${id}/announcements`, queryParams, options);
10
- }
11
- async create(id, createAnnouncementDto, options) {
12
- return this.post(`api/communities/${id}/announcements`, createAnnouncementDto, undefined, options);
13
- }
14
- async count(id, publishedAfter, options) {
15
- const queryParams = new URLSearchParams();
16
- if (publishedAfter)
17
- queryParams.append("publishedAfter", String(publishedAfter));
18
- return this.get(`api/communities/${id}/announcements/count`, queryParams, options);
19
- }
20
- async findOne(id, announcementId, options) {
21
- return this.get(`api/communities/${id}/announcements/${announcementId}`, undefined, options);
22
- }
23
- async update(id, announcementId, updateAnnouncementDto, options) {
24
- return this.put(`api/communities/${id}/announcements/${announcementId}`, updateAnnouncementDto, undefined, options);
25
- }
26
- async remove(id, announcementId, options) {
27
- return this.delete(`api/communities/${id}/announcements/${announcementId}`, undefined, options);
28
- }
29
- }
30
- //# sourceMappingURL=announcement.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"announcement.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/announcement.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA2BtC,MAAM,OAAO,kBAAmB,SAAQ,aAAa;IAKnD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,OAAO,CACX,EAAU,EACV,KAA4B,EAC5B,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,gBAAgB,EACrC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,EAAU,EACV,qBAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,mBAAmB,EAAE,gBAAgB,EACrC,qBAAqB,EACrB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,KAAK,CACT,EAAU,EACV,cAAqB,EACrB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,IAAI,cAAc;YAChB,WAAW,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,sBAAsB,EAC3C,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,OAAO,CACX,EAAU,EACV,cAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,kBAAkB,cAAc,EAAE,EACvD,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,MAAM,CACV,EAAU,EACV,cAAsB,EACtB,qBAA4C,EAC5C,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,kBAAkB,cAAc,EAAE,EACvD,qBAAqB,EACrB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,EAAU,EACV,cAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,mBAAmB,EAAE,kBAAkB,cAAc,EAAE,EACvD,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions } from "@edifice.io/rest-client-base";
2
- export declare class AnnouncementBrokerClient extends BaseApiClient {
3
- constructor(options?: ApiClientOptions);
4
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiClient } from "@edifice.io/rest-client-base/react-native";
2
- export class AnnouncementBrokerClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- }
7
- //# sourceMappingURL=announcementBroker.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"announcementBroker.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/announcementBroker.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,8BAA8B,CAAC;AAmB/E,MAAM,OAAO,wBAAyB,SAAQ,aAAa;IAKzD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions } from "@edifice.io/rest-client-base";
2
- export declare class AppClient extends BaseApiClient {
3
- constructor(options?: ApiClientOptions);
4
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiClient } from "@edifice.io/rest-client-base/react-native";
2
- export class AppClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- }
7
- //# sourceMappingURL=app.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"app.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/app.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,8BAA8B,CAAC;AAmB/E,MAAM,OAAO,SAAU,SAAQ,aAAa;IAK1C,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,13 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchCommunityRequestDto, SearchCommunityResponseDto, CreateCommunityDto, CommunityResponseDto, CommunitySecretCodeDto, UpdateCommunityDto, CommunityStatsDto } from "../../../dtos";
3
- export declare class CommunityClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findAll(query: SearchCommunityRequestDto, options?: RequestOptions): Promise<SearchCommunityResponseDto>;
6
- create(createCommunityDto: CreateCommunityDto, options?: RequestOptions): Promise<CommunityResponseDto>;
7
- findOne(id: number, fields?: string, options?: RequestOptions): Promise<CommunityResponseDto>;
8
- getSecretCode(id: number, options?: RequestOptions): Promise<CommunitySecretCodeDto>;
9
- update(id: number, updateCommunityDto: UpdateCommunityDto, options?: RequestOptions): Promise<CommunityResponseDto>;
10
- remove(id: number, options?: RequestOptions): Promise<void>;
11
- updateWelcomeNote(id: number, welcomeNote: string, options?: RequestOptions): Promise<CommunityResponseDto>;
12
- getStats(id: number, options?: RequestOptions): Promise<CommunityStatsDto>;
13
- }
@@ -1,36 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class CommunityClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findAll(query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities`, queryParams, options);
10
- }
11
- async create(createCommunityDto, options) {
12
- return this.post(`api/communities`, createCommunityDto, undefined, options);
13
- }
14
- async findOne(id, fields, options) {
15
- const queryParams = new URLSearchParams();
16
- if (fields)
17
- queryParams.append("fields", String(fields));
18
- return this.get(`api/communities/${id}`, queryParams, options);
19
- }
20
- async getSecretCode(id, options) {
21
- return this.get(`api/communities/${id}/secret-code`, undefined, options);
22
- }
23
- async update(id, updateCommunityDto, options) {
24
- return this.patch(`api/communities/${id}`, updateCommunityDto, undefined, options);
25
- }
26
- async remove(id, options) {
27
- return this.delete(`api/communities/${id}`, undefined, options);
28
- }
29
- async updateWelcomeNote(id, welcomeNote, options) {
30
- return this.patch(`api/communities/${id}/welcome-note`, welcomeNote, undefined, options);
31
- }
32
- async getStats(id, options) {
33
- return this.get(`api/communities/${id}/stats`, undefined, options);
34
- }
35
- }
36
- //# sourceMappingURL=community.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"community.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/community.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA4BtC,MAAM,OAAO,eAAgB,SAAQ,aAAa;IAKhD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAQD,KAAK,CAAC,OAAO,CACX,KAAgC,EAChC,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,MAAM,CACV,kBAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,iBAAiB,EACjB,kBAAkB,EAClB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,OAAO,CACX,EAAU,EACV,MAAe,EACf,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,IAAI,MAAM;YAAE,WAAW,CAAC,MAAM,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;QAEzD,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,EAAE,EACvB,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,aAAa,CACjB,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,cAAc,EACnC,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,EAAU,EACV,kBAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CACf,mBAAmB,EAAE,EAAE,EACvB,kBAAkB,EAClB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,MAAM,CAAC,EAAU,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IASD,KAAK,CAAC,iBAAiB,CACrB,EAAU,EACV,WAAmB,EACnB,OAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CACf,mBAAmB,EAAE,eAAe,EACpC,WAAW,EACX,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,QAAQ,EAC7B,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,14 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { ListCommunityInvitationsQueryDto, SearchInvitationAndMembersResponseDto, CreateInvitationDto, InvitationResponseDto, CountInvitationsQueryDto, InvitationStatsQueryDto, InvitationStatsDto, DeleteInvitationsDto, UpdateRequestStatusDto } from "../../../dtos";
3
- export declare class CommunityInvitationClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findInvitationsByCommunity(communityId: number, query: ListCommunityInvitationsQueryDto, options?: RequestOptions): Promise<SearchInvitationAndMembersResponseDto>;
6
- createOrUpdateInvitations(id: number, createInvitationDto: CreateInvitationDto, options?: RequestOptions): Promise<InvitationResponseDto[]>;
7
- countAfterDate(id: number, _queryParams: CountInvitationsQueryDto, options?: RequestOptions): Promise<{
8
- count: number;
9
- }>;
10
- getStats(id: number, _queryParams: InvitationStatsQueryDto, options?: RequestOptions): Promise<InvitationStatsDto>;
11
- deleteInvitation(communityId: number, invitationId: number, options?: RequestOptions): Promise<void>;
12
- deleteInvitationsBatch(communityId: number, payload: DeleteInvitationsDto, options?: RequestOptions): Promise<void>;
13
- updateRequestStatus(communityId: number, invitationId: number, updateRequestStatusDto: UpdateRequestStatusDto, options?: RequestOptions): Promise<InvitationResponseDto>;
14
- }
@@ -1,34 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class CommunityInvitationClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findInvitationsByCommunity(communityId, query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities/:id/invitations`, queryParams, options);
10
- }
11
- async createOrUpdateInvitations(id, createInvitationDto, options) {
12
- return this.post(`api/communities/${id}/invitations`, createInvitationDto, undefined, options);
13
- }
14
- async countAfterDate(id, _queryParams, options) {
15
- const queryParams = new URLSearchParams();
16
- queryParams.append("_queryParams", String(_queryParams));
17
- return this.get(`api/communities/${id}/invitations/count`, queryParams, options);
18
- }
19
- async getStats(id, _queryParams, options) {
20
- const queryParams = new URLSearchParams();
21
- queryParams.append("_queryParams", String(_queryParams));
22
- return this.get(`api/communities/${id}/invitations/stats`, queryParams, options);
23
- }
24
- async deleteInvitation(communityId, invitationId, options) {
25
- return this.delete(`api/communities/:id/invitations/${invitationId}`, undefined, options);
26
- }
27
- async deleteInvitationsBatch(communityId, payload, options) {
28
- return this.delete(`api/communities/:id/invitations`, undefined, options);
29
- }
30
- async updateRequestStatus(communityId, invitationId, updateRequestStatusDto, options) {
31
- return this.put(`api/communities/:id/invitations/${invitationId}/status`, updateRequestStatusDto, undefined, options);
32
- }
33
- }
34
- //# sourceMappingURL=communityInvitation.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"communityInvitation.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/communityInvitation.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA8BtC,MAAM,OAAO,yBAA0B,SAAQ,aAAa;IAK1D,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,0BAA0B,CAC9B,WAAmB,EACnB,KAAuC,EACvC,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,iCAAiC,EACjC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,yBAAyB,CAC7B,EAAU,EACV,mBAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,mBAAmB,EAAE,cAAc,EACnC,mBAAmB,EACnB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,cAAc,CAClB,EAAU,EACV,YAAsC,EACtC,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAEzD,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,oBAAoB,EACzC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,YAAqC,EACrC,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,cAAc,EAAE,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAEzD,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,oBAAoB,EACzC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,gBAAgB,CACpB,WAAmB,EACnB,YAAoB,EACpB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,mCAAmC,YAAY,EAAE,EACjD,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,sBAAsB,CAC1B,WAAmB,EACnB,OAA6B,EAC7B,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAAC,iCAAiC,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAUD,KAAK,CAAC,mBAAmB,CACvB,WAAmB,EACnB,YAAoB,EACpB,sBAA8C,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mCAAmC,YAAY,SAAS,EACxD,sBAAsB,EACtB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,11 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchMembershipQueryDto, SearchMembershipResponseDto, UpdateMembershipDto, MembershipResponseDto, LeaveCommunityOptionsDto, UpdateLastVisitDto, DeleteMembersDto, DeleteMembersResponseDto } from "../../../dtos";
3
- export declare class CommunityMembershipClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findByCommunity(id: number, query: SearchMembershipQueryDto, options?: RequestOptions): Promise<SearchMembershipResponseDto>;
6
- updateMember(id: number, userId: number, updateMembershipDto: UpdateMembershipDto, options?: RequestOptions): Promise<MembershipResponseDto>;
7
- removeMember(id: number, userId: number, options?: RequestOptions): Promise<void>;
8
- leaveCommunity(id: number, _options: LeaveCommunityOptionsDto, options?: RequestOptions): Promise<void>;
9
- updateLastVisit(id: number, updateVisitDto: UpdateLastVisitDto, options?: RequestOptions): Promise<MembershipResponseDto>;
10
- removeMembers(id: number, payload: DeleteMembersDto, options?: RequestOptions): Promise<DeleteMembersResponseDto>;
11
- }
@@ -1,27 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class CommunityMembershipClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findByCommunity(id, query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities/${id}/members`, queryParams, options);
10
- }
11
- async updateMember(id, userId, updateMembershipDto, options) {
12
- return this.patch(`api/communities/${id}/members/${userId}`, updateMembershipDto, undefined, options);
13
- }
14
- async removeMember(id, userId, options) {
15
- return this.delete(`api/communities/${id}/members/${userId}`, undefined, options);
16
- }
17
- async leaveCommunity(id, _options, options) {
18
- return this.post(`api/communities/${id}/members/leave`, _options, undefined, options);
19
- }
20
- async updateLastVisit(id, updateVisitDto, options) {
21
- return this.post(`api/communities/${id}/members/visit`, updateVisitDto, undefined, options);
22
- }
23
- async removeMembers(id, payload, options) {
24
- return this.delete(`api/communities/${id}/members`, undefined, options);
25
- }
26
- }
27
- //# sourceMappingURL=communityMembership.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"communityMembership.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/communityMembership.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA6BtC,MAAM,OAAO,yBAA0B,SAAQ,aAAa;IAK1D,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,KAA+B,EAC/B,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,UAAU,EAC/B,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,YAAY,CAChB,EAAU,EACV,MAAc,EACd,mBAAwC,EACxC,OAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CACf,mBAAmB,EAAE,YAAY,MAAM,EAAE,EACzC,mBAAmB,EACnB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,YAAY,CAChB,EAAU,EACV,MAAc,EACd,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,mBAAmB,EAAE,YAAY,MAAM,EAAE,EACzC,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,cAAc,CAClB,EAAU,EACV,QAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,mBAAmB,EAAE,gBAAgB,EACrC,QAAQ,EACR,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,eAAe,CACnB,EAAU,EACV,cAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,mBAAmB,EAAE,gBAAgB,EACrC,cAAc,EACd,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,aAAa,CACjB,EAAU,EACV,OAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,mBAAmB,EAAE,UAAU,EAC/B,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,7 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { CountDiscussionDto, CountDiscussionMessageDto } from "../../../dtos";
3
- export declare class DiscussionsClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- countDiscussionsAfterDate(id: number, addedAfterDate: Date, options?: RequestOptions): Promise<CountDiscussionDto>;
6
- countMessagesAfterDate(id: number, postedAfterDate: Date, options?: RequestOptions): Promise<CountDiscussionMessageDto>;
7
- }
@@ -1,17 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class DiscussionsClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async countDiscussionsAfterDate(id, addedAfterDate, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("addedAfterDate", String(addedAfterDate));
9
- return this.get(`api/communities/${id}/discussions/count`, queryParams, options);
10
- }
11
- async countMessagesAfterDate(id, postedAfterDate, options) {
12
- const queryParams = new URLSearchParams();
13
- queryParams.append("postedAfterDate", String(postedAfterDate));
14
- return this.get(`api/communities/${id}/discussions/messages/count`, queryParams, options);
15
- }
16
- }
17
- //# sourceMappingURL=discussions.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discussions.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/discussions.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AAoBtC,MAAM,OAAO,iBAAkB,SAAQ,aAAa;IAKlD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,yBAAyB,CAC7B,EAAU,EACV,cAAoB,EACpB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;QAE7D,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,oBAAoB,EACzC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,sBAAsB,CAC1B,EAAU,EACV,eAAqB,EACrB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,6BAA6B,EAClD,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,12 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchFolderDto, FolderDto, CreateFolderDto, PaginationQueryDto, FolderDetailsDto, UpdateFolderDto } from "../../../dtos";
3
- export declare class FolderClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findAll(communityId: number, query: SearchFolderDto, options?: RequestOptions): Promise<FolderDto[]>;
6
- create(communityId: number, createFolderDto: CreateFolderDto, options?: RequestOptions): Promise<FolderDto>;
7
- findOne(communityId: number, folderId: number, query: PaginationQueryDto, options?: RequestOptions): Promise<FolderDetailsDto>;
8
- update(communityId: number, folderId: number, updateFolderDto: UpdateFolderDto, options?: RequestOptions): Promise<FolderDto>;
9
- remove(communityId: number, folderId: number, options?: RequestOptions): Promise<void>;
10
- addResource(communityId: number, folderId: number, resourceId: number, options?: RequestOptions): Promise<void>;
11
- removeResource(communityId: number, folderId: number, resourceId: number, options?: RequestOptions): Promise<void>;
12
- }
@@ -1,32 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class FolderClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findAll(communityId, query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities/:id/folders`, queryParams, options);
10
- }
11
- async create(communityId, createFolderDto, options) {
12
- return this.post(`api/communities/:id/folders`, createFolderDto, undefined, options);
13
- }
14
- async findOne(communityId, folderId, query, options) {
15
- const queryParams = new URLSearchParams();
16
- queryParams.append("query", String(query));
17
- return this.get(`api/communities/:id/folders/${folderId}`, queryParams, options);
18
- }
19
- async update(communityId, folderId, updateFolderDto, options) {
20
- return this.put(`api/communities/:id/folders/${folderId}`, updateFolderDto, undefined, options);
21
- }
22
- async remove(communityId, folderId, options) {
23
- return this.delete(`api/communities/:id/folders/${folderId}`, undefined, options);
24
- }
25
- async addResource(communityId, folderId, resourceId, options) {
26
- return this.post(`api/communities/:id/folders/${folderId}/resources/${resourceId}`, undefined, undefined, options);
27
- }
28
- async removeResource(communityId, folderId, resourceId, options) {
29
- return this.delete(`api/communities/:id/folders/${folderId}/resources/${resourceId}`, undefined, options);
30
- }
31
- }
32
- //# sourceMappingURL=folder.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"folder.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/folder.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA2BtC,MAAM,OAAO,YAAa,SAAQ,aAAa;IAK7C,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,OAAO,CACX,WAAmB,EACnB,KAAsB,EACtB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,6BAA6B,EAC7B,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,eAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,6BAA6B,EAC7B,eAAe,EACf,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,OAAO,CACX,WAAmB,EACnB,QAAgB,EAChB,KAAyB,EACzB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,+BAA+B,QAAQ,EAAE,EACzC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,QAAgB,EAChB,eAAgC,EAChC,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,+BAA+B,QAAQ,EAAE,EACzC,eAAe,EACf,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,QAAgB,EAChB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,+BAA+B,QAAQ,EAAE,EACzC,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,WAAW,CACf,WAAmB,EACnB,QAAgB,EAChB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,+BAA+B,QAAQ,cAAc,UAAU,EAAE,EACjE,SAAS,EACT,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,cAAc,CAClB,WAAmB,EACnB,QAAgB,EAChB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,+BAA+B,QAAQ,cAAc,UAAU,EAAE,EACjE,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,14 +0,0 @@
1
- export { AnnouncementBrokerClient } from "./announcementBroker.client";
2
- export { AnnouncementClient } from "./announcement.client";
3
- export { AppClient } from "./app.client";
4
- export { CommunityClient } from "./community.client";
5
- export { DiscussionsClient } from "./discussions.client";
6
- export { FolderClient } from "./folder.client";
7
- export { CommunityInvitationClient } from "./communityInvitation.client";
8
- export { UserInvitationClient } from "./userInvitation.client";
9
- export { LoadTestClient } from "./loadTest.client";
10
- export { CommunityMembershipClient } from "./communityMembership.client";
11
- export { NotificationClient } from "./notification.client";
12
- export { ResourceClient } from "./resource.client";
13
- export { ResourceEventClient } from "./resourceEvent.client";
14
- export { WikiClient } from "./wiki.client";
@@ -1,15 +0,0 @@
1
- export { AnnouncementBrokerClient } from "./announcementBroker.client";
2
- export { AnnouncementClient } from "./announcement.client";
3
- export { AppClient } from "./app.client";
4
- export { CommunityClient } from "./community.client";
5
- export { DiscussionsClient } from "./discussions.client";
6
- export { FolderClient } from "./folder.client";
7
- export { CommunityInvitationClient } from "./communityInvitation.client";
8
- export { UserInvitationClient } from "./userInvitation.client";
9
- export { LoadTestClient } from "./loadTest.client";
10
- export { CommunityMembershipClient } from "./communityMembership.client";
11
- export { NotificationClient } from "./notification.client";
12
- export { ResourceClient } from "./resource.client";
13
- export { ResourceEventClient } from "./resourceEvent.client";
14
- export { WikiClient } from "./wiki.client";
15
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -1,4 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions } from "@edifice.io/rest-client-base";
2
- export declare class LoadTestClient extends BaseApiClient {
3
- constructor(options?: ApiClientOptions);
4
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiClient } from "@edifice.io/rest-client-base/react-native";
2
- export class LoadTestClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- }
7
- //# sourceMappingURL=loadTest.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"loadTest.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/loadTest.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,8BAA8B,CAAC;AAmB/E,MAAM,OAAO,cAAe,SAAQ,aAAa;IAK/C,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions } from "@edifice.io/rest-client-base";
2
- export declare class NotificationClient extends BaseApiClient {
3
- constructor(options?: ApiClientOptions);
4
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiClient } from "@edifice.io/rest-client-base/react-native";
2
- export class NotificationClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- }
7
- //# sourceMappingURL=notification.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"notification.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/notification.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,8BAA8B,CAAC;AAmB/E,MAAM,OAAO,kBAAmB,SAAQ,aAAa;IAKnD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,14 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchResourceDto, SearchResourceResponseDto, CreateResourceDto, ResourceDto, CountResourceQueryDto, CountResourceDto, UpdateResourceDto } from "../../../dtos";
3
- export declare class ResourceClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findAll(communityId: number, query: SearchResourceDto, options?: RequestOptions): Promise<SearchResourceResponseDto>;
6
- create(communityId: number, createResourceDto: CreateResourceDto, options?: RequestOptions): Promise<ResourceDto>;
7
- count(communityId: number, query: CountResourceQueryDto, options?: RequestOptions): Promise<CountResourceDto>;
8
- findOne(communityId: number, resourceId: number, options?: RequestOptions): Promise<ResourceDto>;
9
- remove(communityId: number, resourceId: number, options?: RequestOptions): Promise<void>;
10
- update(communityId: number, resourceId: number, updateResourceDto: UpdateResourceDto, options?: RequestOptions): Promise<ResourceDto>;
11
- cleanUpResource(batchSize: number, options?: RequestOptions): Promise<{
12
- processedCount: number;
13
- }>;
14
- }
@@ -1,34 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class ResourceClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findAll(communityId, query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/communities/:id/resources`, queryParams, options);
10
- }
11
- async create(communityId, createResourceDto, options) {
12
- return this.post(`api/communities/:id/resources`, createResourceDto, undefined, options);
13
- }
14
- async count(communityId, query, options) {
15
- const queryParams = new URLSearchParams();
16
- queryParams.append("query", String(query));
17
- return this.get(`api/communities/:id/resources/count`, queryParams, options);
18
- }
19
- async findOne(communityId, resourceId, options) {
20
- return this.get(`api/communities/:id/resources/${resourceId}`, undefined, options);
21
- }
22
- async remove(communityId, resourceId, options) {
23
- return this.delete(`api/communities/:id/resources/${resourceId}`, undefined, options);
24
- }
25
- async update(communityId, resourceId, updateResourceDto, options) {
26
- return this.patch(`api/communities/:id/resources/${resourceId}`, updateResourceDto, undefined, options);
27
- }
28
- async cleanUpResource(batchSize, options) {
29
- const queryParams = new URLSearchParams();
30
- queryParams.append("batchSize", String(batchSize));
31
- return this.post(`api/communities/:id/resources/cleanup-resources`, undefined, queryParams, options);
32
- }
33
- }
34
- //# sourceMappingURL=resource.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resource.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/resource.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA4BtC,MAAM,OAAO,cAAe,SAAQ,aAAa;IAK/C,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,OAAO,CACX,WAAmB,EACnB,KAAwB,EACxB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,+BAA+B,EAC/B,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,iBAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,+BAA+B,EAC/B,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,KAAK,CACT,WAAmB,EACnB,KAA4B,EAC5B,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,qCAAqC,EACrC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,OAAO,CACX,WAAmB,EACnB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,iCAAiC,UAAU,EAAE,EAC7C,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,UAAkB,EAClB,OAAwB;QAExB,OAAO,IAAI,CAAC,MAAM,CAChB,iCAAiC,UAAU,EAAE,EAC7C,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAUD,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,UAAkB,EAClB,iBAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,KAAK,CACf,iCAAiC,UAAU,EAAE,EAC7C,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,eAAe,CACnB,SAAiB,EACjB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;QAEnD,OAAO,IAAI,CAAC,IAAI,CACd,iDAAiD,EACjD,SAAS,EACT,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,4 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions } from "@edifice.io/rest-client-base";
2
- export declare class ResourceEventClient extends BaseApiClient {
3
- constructor(options?: ApiClientOptions);
4
- }
@@ -1,7 +0,0 @@
1
- import { BaseApiClient } from "@edifice.io/rest-client-base/react-native";
2
- export class ResourceEventClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- }
7
- //# sourceMappingURL=resourceEvent.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resourceEvent.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/resourceEvent.client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAoB,MAAM,8BAA8B,CAAC;AAmB/E,MAAM,OAAO,mBAAoB,SAAQ,aAAa;IAKpD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -1,10 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { SearchInvitationDto, SearchInvitationResponseDto, InvitationResponseDto, UpdateInvitationStatusDto, JoinCommunityDto, UpdateSeeLaterDto } from "../../../dtos";
3
- export declare class UserInvitationClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- findAll(query: SearchInvitationDto, options?: RequestOptions): Promise<SearchInvitationResponseDto>;
6
- findById(id: number, options?: RequestOptions): Promise<InvitationResponseDto>;
7
- updateStatus(id: number, updateInvitationStatusDto: UpdateInvitationStatusDto, options?: RequestOptions): Promise<InvitationResponseDto>;
8
- joinCommunity(joinCommunityDto: JoinCommunityDto, options?: RequestOptions): Promise<InvitationResponseDto>;
9
- updateSeeLater(id: number, updateSeeLaterDto: UpdateSeeLaterDto, options?: RequestOptions): Promise<InvitationResponseDto>;
10
- }
@@ -1,24 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class UserInvitationClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async findAll(query, options) {
7
- const queryParams = new URLSearchParams();
8
- queryParams.append("query", String(query));
9
- return this.get(`api/invitations`, queryParams, options);
10
- }
11
- async findById(id, options) {
12
- return this.get(`api/invitations/${id}`, undefined, options);
13
- }
14
- async updateStatus(id, updateInvitationStatusDto, options) {
15
- return this.put(`api/invitations/${id}/status`, updateInvitationStatusDto, undefined, options);
16
- }
17
- async joinCommunity(joinCommunityDto, options) {
18
- return this.post(`api/invitations/join`, joinCommunityDto, undefined, options);
19
- }
20
- async updateSeeLater(id, updateSeeLaterDto, options) {
21
- return this.put(`api/invitations/${id}/see-later`, updateSeeLaterDto, undefined, options);
22
- }
23
- }
24
- //# sourceMappingURL=userInvitation.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"userInvitation.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/userInvitation.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AA2BtC,MAAM,OAAO,oBAAqB,SAAQ,aAAa;IAKrD,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IAQD,KAAK,CAAC,OAAO,CACX,KAA0B,EAC1B,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;QAE3C,OAAO,IAAI,CAAC,GAAG,CACb,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,QAAQ,CACZ,EAAU,EACV,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,EAAE,EACvB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,YAAY,CAChB,EAAU,EACV,yBAAoD,EACpD,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,SAAS,EAC9B,yBAAyB,EACzB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IAQD,KAAK,CAAC,aAAa,CACjB,gBAAkC,EAClC,OAAwB;QAExB,OAAO,IAAI,CAAC,IAAI,CACd,sBAAsB,EACtB,gBAAgB,EAChB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;IASD,KAAK,CAAC,cAAc,CAClB,EAAU,EACV,iBAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,YAAY,EACjC,iBAAiB,EACjB,SAAS,EACT,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}
@@ -1,6 +0,0 @@
1
- import { BaseApiClient, ApiClientOptions, RequestOptions } from "@edifice.io/rest-client-base";
2
- import { CountWikiPagesDto } from "../../../dtos";
3
- export declare class WikiClient extends BaseApiClient {
4
- constructor(options?: ApiClientOptions);
5
- count(id: number, publishedAfter?: Date, options?: RequestOptions): Promise<CountWikiPagesDto>;
6
- }
@@ -1,13 +0,0 @@
1
- import { BaseApiClient, } from "@edifice.io/rest-client-base/react-native";
2
- export class WikiClient extends BaseApiClient {
3
- constructor(options = {}) {
4
- super(options);
5
- }
6
- async count(id, publishedAfter, options) {
7
- const queryParams = new URLSearchParams();
8
- if (publishedAfter)
9
- queryParams.append("publishedAfter", String(publishedAfter));
10
- return this.get(`api/communities/${id}/wikis/count`, queryParams, options);
11
- }
12
- }
13
- //# sourceMappingURL=wiki.client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"wiki.client.js","sourceRoot":"","sources":["../../../../../src/clients/generated/clients/wiki.client.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,GAGd,MAAM,8BAA8B,CAAC;AAoBtC,MAAM,OAAO,UAAW,SAAQ,aAAa;IAK3C,YAAY,UAA4B,EAAE;QACxC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;IASD,KAAK,CAAC,KAAK,CACT,EAAU,EACV,cAAqB,EACrB,OAAwB;QAExB,MAAM,WAAW,GAAG,IAAI,eAAe,EAAE,CAAC;QAC1C,IAAI,cAAc;YAChB,WAAW,CAAC,MAAM,CAAC,gBAAgB,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC;QAE/D,OAAO,IAAI,CAAC,GAAG,CACb,mBAAmB,EAAE,cAAc,EACnC,WAAW,EACX,OAAO,CACR,CAAC;IACJ,CAAC;CACF"}