@thunderid/javascript 0.6.0 → 0.7.0

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.
@@ -17,9 +17,9 @@
17
17
  */
18
18
  import { User } from '../models/user';
19
19
  /**
20
- * Configuration for the getScim2Me request
20
+ * Configuration for the getUsersMe request
21
21
  */
22
- export interface GetScim2MeConfig extends Omit<RequestInit, 'method'> {
22
+ export interface GetUsersMeConfig extends Omit<RequestInit, 'method'> {
23
23
  /**
24
24
  * The base path of the API endpoint.
25
25
  */
@@ -35,7 +35,7 @@ export interface GetScim2MeConfig extends Omit<RequestInit, 'method'> {
35
35
  url?: string;
36
36
  }
37
37
  /**
38
- * Retrieves the user profile information from the specified SCIM2 /Me endpoint.
38
+ * Retrieves the user profile information from the specified /users/me endpoint.
39
39
  *
40
40
  * @param config - Request configuration object.
41
41
  * @returns A promise that resolves with the user profile information.
@@ -43,8 +43,8 @@ export interface GetScim2MeConfig extends Omit<RequestInit, 'method'> {
43
43
  * ```typescript
44
44
  * // Using default fetch
45
45
  * try {
46
- * const userProfile = await getScim2Me({
47
- * url: "https://localhost:8090/scim2/Me",
46
+ * const userProfile = await getUsersMe({
47
+ * url: "https://localhost:8090/users/me",
48
48
  * });
49
49
  * console.log(userProfile);
50
50
  * } catch (error) {
@@ -58,8 +58,8 @@ export interface GetScim2MeConfig extends Omit<RequestInit, 'method'> {
58
58
  * ```typescript
59
59
  * // Using custom fetcher (e.g., axios-based httpClient)
60
60
  * try {
61
- * const userProfile = await getScim2Me({
62
- * url: "https://localhost:8090/scim2/Me",
61
+ * const userProfile = await getUsersMe({
62
+ * url: "https://localhost:8090/users/me",
63
63
  * fetcher: async (url, config) => {
64
64
  * const response = await httpClient({
65
65
  * url,
@@ -85,6 +85,6 @@ export interface GetScim2MeConfig extends Omit<RequestInit, 'method'> {
85
85
  * }
86
86
  * ```
87
87
  */
88
- declare const getScim2Me: ({ url, baseUrl, fetcher, ...requestConfig }: GetScim2MeConfig) => Promise<User>;
89
- export default getScim2Me;
90
- //# sourceMappingURL=getScim2Me.d.ts.map
88
+ declare const getUsersMe: ({ url, baseUrl, fetcher, ...requestConfig }: GetUsersMeConfig) => Promise<User>;
89
+ export default getUsersMe;
90
+ //# sourceMappingURL=getUsersMe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getScim2Me.d.ts","sourceRoot":"","sources":["../../src/api/getScim2Me.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,QAAA,MAAM,UAAU,GAAU,6CAA2C,gBAAgB,KAAG,OAAO,CAAC,IAAI,CA2DnG,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"getUsersMe.d.ts","sourceRoot":"","sources":["../../src/api/getUsersMe.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,EAAC,IAAI,EAAC,MAAM,gBAAgB,CAAC;AAGpC;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC;IACnE;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,OAAO,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AACH,QAAA,MAAM,UAAU,GAAU,6CAA2C,gBAAgB,KAAG,OAAO,CAAC,IAAI,CAgEnG,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -30,7 +30,7 @@ export interface UpdateMeProfileConfig extends Omit<RequestInit, 'method' | 'bod
30
30
  */
31
31
  fetcher?: (url: string, config: RequestInit) => Promise<Response>;
32
32
  /**
33
- * The value object to patch (SCIM2 PATCH value)
33
+ * The value object to patch (PATCH value)
34
34
  */
35
35
  payload: any;
36
36
  /**
@@ -39,7 +39,7 @@ export interface UpdateMeProfileConfig extends Omit<RequestInit, 'method' | 'bod
39
39
  url?: string;
40
40
  }
41
41
  /**
42
- * Updates the user profile information at the specified SCIM2 Me endpoint.
42
+ * Updates the user profile information at the specified /users/me endpoint.
43
43
  *
44
44
  * @param config - Configuration object with URL, payload and optional request config.
45
45
  * @returns A promise that resolves with the updated user profile information.
@@ -47,8 +47,8 @@ export interface UpdateMeProfileConfig extends Omit<RequestInit, 'method' | 'bod
47
47
  * ```typescript
48
48
  * // Using default fetch
49
49
  * await updateMeProfile({
50
- * url: "https://localhost:8090/scim2/Me",
51
- * payload: { "urn:scim:wso2:schema": { mobileNumbers: ["0777933830"] } }
50
+ * url: "https://localhost:8090/users/me",
51
+ * payload: { mobileNumbers: ["0777933830"] }
52
52
  * });
53
53
  * ```
54
54
  *
@@ -56,8 +56,8 @@ export interface UpdateMeProfileConfig extends Omit<RequestInit, 'method' | 'bod
56
56
  * ```typescript
57
57
  * // Using custom fetcher (e.g., axios-based httpClient)
58
58
  * await updateMeProfile({
59
- * url: "https://localhost:8090/scim2/Me",
60
- * payload: { "urn:scim:wso2:schema": { mobileNumbers: ["0777933830"] } },
59
+ * url: "https://localhost:8090/users/me",
60
+ * payload: { mobileNumbers: ["0777933830"] },
61
61
  * fetcher: async (url, config) => {
62
62
  * const response = await httpClient({
63
63
  * url,