@selfcommunity/api-services 0.3.3-alpha.1 → 0.3.3-alpha.3

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 (33) hide show
  1. package/lib/cjs/constants/Endpoints.js +1 -1
  2. package/lib/cjs/constants/Endpoints.js.map +1 -1
  3. package/lib/cjs/index.d.ts +2 -2
  4. package/lib/cjs/index.d.ts.map +1 -1
  5. package/lib/cjs/index.js +4 -4
  6. package/lib/cjs/index.js.map +1 -1
  7. package/lib/cjs/services/invite/index.d.ts +54 -0
  8. package/lib/cjs/services/invite/index.d.ts.map +1 -0
  9. package/lib/cjs/services/{invite_code → invite}/index.js +15 -15
  10. package/lib/cjs/services/invite/index.js.map +1 -0
  11. package/lib/cjs/services/user/index.js +6 -6
  12. package/lib/cjs/services/user/index.js.map +1 -1
  13. package/lib/esm/constants/Endpoints.js +1 -1
  14. package/lib/esm/constants/Endpoints.js.map +1 -1
  15. package/lib/esm/index.d.ts +2 -2
  16. package/lib/esm/index.d.ts.map +1 -1
  17. package/lib/esm/index.js +2 -2
  18. package/lib/esm/index.js.map +1 -1
  19. package/lib/esm/services/invite/index.d.ts +54 -0
  20. package/lib/esm/services/invite/index.d.ts.map +1 -0
  21. package/lib/esm/services/{invite_code → invite}/index.js +12 -12
  22. package/lib/esm/services/invite/index.js.map +1 -0
  23. package/lib/esm/services/user/index.js +6 -6
  24. package/lib/esm/services/user/index.js.map +1 -1
  25. package/lib/umd/api-services.js +1 -1
  26. package/lib/umd/api-services.js.map +1 -1
  27. package/package.json +3 -3
  28. package/lib/cjs/services/invite_code/index.d.ts +0 -54
  29. package/lib/cjs/services/invite_code/index.d.ts.map +0 -1
  30. package/lib/cjs/services/invite_code/index.js.map +0 -1
  31. package/lib/esm/services/invite_code/index.d.ts +0 -54
  32. package/lib/esm/services/invite_code/index.d.ts.map +0 -1
  33. package/lib/esm/services/invite_code/index.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@selfcommunity/api-services",
3
- "version": "0.3.3-alpha.1",
3
+ "version": "0.3.3-alpha.3",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "main": "./lib/cjs/index.js",
@@ -46,7 +46,7 @@
46
46
  "access": "public"
47
47
  },
48
48
  "dependencies": {
49
- "@selfcommunity/types": "^0.3.3-alpha.1",
49
+ "@selfcommunity/types": "^0.3.3-alpha.2",
50
50
  "@selfcommunity/utils": "^0.1.41-alpha.0",
51
51
  "axios": "^0.23.0",
52
52
  "jose": "^4.8.1"
@@ -109,5 +109,5 @@
109
109
  "bugs": {
110
110
  "url": "https://github.com/selfcommunity/community-js/issues"
111
111
  },
112
- "gitHead": "389dc40f55147fda7fc9454a82cafb2352eb6995"
112
+ "gitHead": "44056cfd4713d66fd1073997c2ee84567b63d7bb"
113
113
  }
@@ -1,54 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- import { SCInviteCodeType } from '@selfcommunity/types';
3
- export interface InviteCodeApiClientInterface {
4
- getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
5
- }
6
- /**
7
- * Contains all the endpoints needed to manage invite codes.
8
- */
9
- export declare class InviteCodeApiClient {
10
- /**
11
- * This endpoint retrieves a specific invite code identified by invite_code.
12
- * @param invite_code
13
- * @param config
14
- */
15
- static getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
16
- }
17
- /**
18
- *
19
- :::tip InviteCode service can be used in the following way:
20
- ```jsx
21
- 1. Import the service from our library:
22
-
23
- import {InviteCodeService} from "@selfcommunity/api-services";
24
- ```
25
- ```jsx
26
- 2. Create a function and put the service inside it!
27
- The async function `create` will return the paginated list of categories.
28
-
29
- async getSpecificInviteCode() {
30
- return await InviteCodeService.getSpecificInviteCode();
31
- }
32
- ```
33
- ```jsx
34
- In case of required `params`, just add them inside the brackets.
35
-
36
- async create(data) {
37
- return await InviteCodeService.getSpecificInviteCode(invite_code);
38
- }
39
- ```
40
- ```jsx
41
- If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
42
-
43
- 1. Declare it(or declare them, it is possible to add multiple params)
44
-
45
- const headers = headers: {Authorization: `Bearer ${yourToken}`}
46
-
47
- 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
48
- ```
49
- :::
50
- */
51
- export default class InviteCodeService {
52
- static getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
53
- }
54
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/invite_code/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACpG;AAED;;GAEG;AACH,qBAAa,mBAAmB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAG1G;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGhH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/invite_code/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,0EAAkD;AAClD,uDAAkD;AAQlD;;GAEG;AACH,MAAa,mBAAmB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,WAAmB,EAAE,MAA2B;QAC3E,OAAO,IAAA,uBAAU,kCAAK,MAAM,KAAE,GAAG,EAAE,mBAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAC,WAAW,EAAC,CAAC,EAAE,MAAM,EAAE,mBAAS,CAAC,IAAI,CAAC,MAAM,IAAE,CAAC;IAC9G,CAAC;CACF;AATD,kDASC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAqB,iBAAiB;IACpC,MAAM,CAAO,qBAAqB,CAAC,WAAmB,EAAE,MAA2B;;YACjF,OAAO,mBAAmB,CAAC,qBAAqB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxE,CAAC;KAAA;CACF;AAJD,oCAIC"}
@@ -1,54 +0,0 @@
1
- import { AxiosRequestConfig } from 'axios';
2
- import { SCInviteCodeType } from '@selfcommunity/types';
3
- export interface InviteCodeApiClientInterface {
4
- getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
5
- }
6
- /**
7
- * Contains all the endpoints needed to manage invite codes.
8
- */
9
- export declare class InviteCodeApiClient {
10
- /**
11
- * This endpoint retrieves a specific invite code identified by invite_code.
12
- * @param invite_code
13
- * @param config
14
- */
15
- static getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
16
- }
17
- /**
18
- *
19
- :::tip InviteCode service can be used in the following way:
20
- ```jsx
21
- 1. Import the service from our library:
22
-
23
- import {InviteCodeService} from "@selfcommunity/api-services";
24
- ```
25
- ```jsx
26
- 2. Create a function and put the service inside it!
27
- The async function `create` will return the paginated list of categories.
28
-
29
- async getSpecificInviteCode() {
30
- return await InviteCodeService.getSpecificInviteCode();
31
- }
32
- ```
33
- ```jsx
34
- In case of required `params`, just add them inside the brackets.
35
-
36
- async create(data) {
37
- return await InviteCodeService.getSpecificInviteCode(invite_code);
38
- }
39
- ```
40
- ```jsx
41
- If you need to customize the request, you can add optional config params (`AxiosRequestConfig` type).
42
-
43
- 1. Declare it(or declare them, it is possible to add multiple params)
44
-
45
- const headers = headers: {Authorization: `Bearer ${yourToken}`}
46
-
47
- 2. Add it inside the brackets and pass it to the function, as shown in the previous example!
48
- ```
49
- :::
50
- */
51
- export default class InviteCodeService {
52
- static getSpecificInviteCode(invite_code: string, config?: AxiosRequestConfig): Promise<SCInviteCodeType>;
53
- }
54
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/services/invite_code/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,kBAAkB,EAAC,MAAM,OAAO,CAAC;AACzC,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AAEtD,MAAM,WAAW,4BAA4B;IAC3C,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACpG;AAED;;GAEG;AACH,qBAAa,mBAAmB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAG1G;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;WACvB,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,gBAAgB,CAAC;CAGhH"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/services/invite_code/index.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAQlD;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAC9B;;;;OAIG;IACH,MAAM,CAAC,qBAAqB,CAAC,WAAmB,EAAE,MAA2B;QAC3E,OAAO,UAAU,iCAAK,MAAM,KAAE,GAAG,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,CAAC,EAAC,WAAW,EAAC,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,IAAI,CAAC,MAAM,IAAE,CAAC;IAC9G,CAAC;CACF;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,MAAM,CAAC,OAAO,OAAO,iBAAiB;IACpC,MAAM,CAAO,qBAAqB,CAAC,WAAmB,EAAE,MAA2B;;YACjF,OAAO,mBAAmB,CAAC,qBAAqB,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC;QACxE,CAAC;KAAA;CACF"}