@unito/integrations-platform-client 1.1.11 → 1.2.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.
- package/dist/src/addons.d.ts +4 -3
- package/dist/src/addons.js +4 -3
- package/dist/src/api.d.ts +7 -5
- package/dist/src/index.cjs +4 -3
- package/package.json +1 -1
package/dist/src/addons.d.ts
CHANGED
|
@@ -135,17 +135,18 @@ export declare function postProxyGraphCollection(xUnitoCredentialId: string, pat
|
|
|
135
135
|
xUnitoAdditionalLoggingContext?: string;
|
|
136
136
|
}, opts?: Oazapfts.RequestOpts): Promise<Response<IntegrationApi.ItemSummary> | ErrorResponse>;
|
|
137
137
|
/**
|
|
138
|
-
* Wrapper of deleteProxyGraph
|
|
138
|
+
* Wrapper of deleteProxyGraph that returns a typed response.
|
|
139
139
|
*
|
|
140
140
|
* @param xUnitoCredentialId The credential ID to use for the request
|
|
141
|
-
* @param path The path to the item to
|
|
141
|
+
* @param path The path to the item to delete
|
|
142
142
|
* @param headers The headers to include in the request
|
|
143
143
|
* @param opts Additional options
|
|
144
|
+
* @returns A successful response or an ErrorResponse
|
|
144
145
|
*/
|
|
145
146
|
export declare function deleteProxyGraphItem(xUnitoCredentialId: string, path: string, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, }?: {
|
|
146
147
|
xUnitoCorrelationId?: string;
|
|
147
148
|
xUnitoAdditionalLoggingContext?: string;
|
|
148
|
-
}, opts?: Oazapfts.RequestOpts): Promise<
|
|
149
|
+
}, opts?: Oazapfts.RequestOpts): Promise<Response<object> | ErrorResponse>;
|
|
149
150
|
/**
|
|
150
151
|
* Call an integration's graph and returns the fetch response directly to enable streaming of the body as it comes in.
|
|
151
152
|
*
|
package/dist/src/addons.js
CHANGED
|
@@ -145,15 +145,16 @@ export async function postProxyGraphCollection(xUnitoCredentialId, path, body, {
|
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
147
|
/**
|
|
148
|
-
* Wrapper of deleteProxyGraph
|
|
148
|
+
* Wrapper of deleteProxyGraph that returns a typed response.
|
|
149
149
|
*
|
|
150
150
|
* @param xUnitoCredentialId The credential ID to use for the request
|
|
151
|
-
* @param path The path to the item to
|
|
151
|
+
* @param path The path to the item to delete
|
|
152
152
|
* @param headers The headers to include in the request
|
|
153
153
|
* @param opts Additional options
|
|
154
|
+
* @returns A successful response or an ErrorResponse
|
|
154
155
|
*/
|
|
155
156
|
export async function deleteProxyGraphItem(xUnitoCredentialId, path, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, } = {}, opts) {
|
|
156
|
-
await deleteProxyGraph(xUnitoCredentialId, path, {
|
|
157
|
+
return await deleteProxyGraph(xUnitoCredentialId, path, {
|
|
157
158
|
xUnitoCorrelationId,
|
|
158
159
|
xUnitoAdditionalLoggingContext,
|
|
159
160
|
}, opts);
|
package/dist/src/api.d.ts
CHANGED
|
@@ -93,6 +93,8 @@ export type AuthorizationOAuth2 = {
|
|
|
93
93
|
authorizationUrl?: string;
|
|
94
94
|
/** The URL to obtain or refresh an access token. */
|
|
95
95
|
tokenUrl: string;
|
|
96
|
+
/** The callback URL which the provider will redirect the user after granting or denying access. */
|
|
97
|
+
legacyRedirectUrl?: string;
|
|
96
98
|
grantType: AuthorizationGrantType;
|
|
97
99
|
scopes: AuthorizationScope[];
|
|
98
100
|
requestContentType: AuthorizationOAuth2ContentType;
|
|
@@ -143,7 +145,7 @@ export type IntegrationEvent = {
|
|
|
143
145
|
};
|
|
144
146
|
export type Credential = Base & {
|
|
145
147
|
/** The id of the credential. */
|
|
146
|
-
id:
|
|
148
|
+
id: string;
|
|
147
149
|
/** The id of the integration. */
|
|
148
150
|
integrationId: number;
|
|
149
151
|
/** The name of the integration. */
|
|
@@ -545,7 +547,7 @@ export declare function getCredentials({ pagination, filters, }?: {
|
|
|
545
547
|
/** The integration id of the credential. */
|
|
546
548
|
integrationId?: number;
|
|
547
549
|
/** List of credential ids. */
|
|
548
|
-
id?:
|
|
550
|
+
id?: string[];
|
|
549
551
|
/** The scope of the credential. */
|
|
550
552
|
credentialScope?: 'development' | 'compliance' | 'production' | 'service';
|
|
551
553
|
/** The id of the Unito User for which this credential belongs to. */
|
|
@@ -618,7 +620,7 @@ export declare function createCredential(body?: {
|
|
|
618
620
|
/**
|
|
619
621
|
* Get a credential
|
|
620
622
|
*/
|
|
621
|
-
export declare function getCredentialById(credentialId:
|
|
623
|
+
export declare function getCredentialById(credentialId: string, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
622
624
|
status: 200;
|
|
623
625
|
data: Credential;
|
|
624
626
|
} | {
|
|
@@ -643,7 +645,7 @@ export declare function getCredentialById(credentialId: number, opts?: Oazapfts.
|
|
|
643
645
|
/**
|
|
644
646
|
* Update a credential
|
|
645
647
|
*/
|
|
646
|
-
export declare function updateCredential(credentialId:
|
|
648
|
+
export declare function updateCredential(credentialId: string, body?: {
|
|
647
649
|
payload?: {
|
|
648
650
|
[key: string]: any;
|
|
649
651
|
};
|
|
@@ -676,7 +678,7 @@ export declare function updateCredential(credentialId: number, body?: {
|
|
|
676
678
|
/**
|
|
677
679
|
* Delete a credential
|
|
678
680
|
*/
|
|
679
|
-
export declare function deleteCredential(credentialId:
|
|
681
|
+
export declare function deleteCredential(credentialId: string, opts?: Oazapfts.RequestOpts): Promise<Oazapfts.WithHeaders<{
|
|
680
682
|
status: 204;
|
|
681
683
|
} | {
|
|
682
684
|
status: 400;
|
package/dist/src/index.cjs
CHANGED
|
@@ -578,15 +578,16 @@ async function postProxyGraphCollection(xUnitoCredentialId, path, body, { xUnito
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
/**
|
|
581
|
-
* Wrapper of deleteProxyGraph
|
|
581
|
+
* Wrapper of deleteProxyGraph that returns a typed response.
|
|
582
582
|
*
|
|
583
583
|
* @param xUnitoCredentialId The credential ID to use for the request
|
|
584
|
-
* @param path The path to the item to
|
|
584
|
+
* @param path The path to the item to delete
|
|
585
585
|
* @param headers The headers to include in the request
|
|
586
586
|
* @param opts Additional options
|
|
587
|
+
* @returns A successful response or an ErrorResponse
|
|
587
588
|
*/
|
|
588
589
|
async function deleteProxyGraphItem(xUnitoCredentialId, path, { xUnitoCorrelationId, xUnitoAdditionalLoggingContext, } = {}, opts) {
|
|
589
|
-
await deleteProxyGraph(xUnitoCredentialId, path, {
|
|
590
|
+
return await deleteProxyGraph(xUnitoCredentialId, path, {
|
|
590
591
|
xUnitoCorrelationId,
|
|
591
592
|
xUnitoAdditionalLoggingContext,
|
|
592
593
|
}, opts);
|