@lucidtech/las-sdk-core
Advanced tools
Comparing version 9.0.2 to 9.1.0
@@ -5,3 +5,3 @@ /// <reference types="node" /> | ||
import { Credentials } from './credentials'; | ||
import type { AppClient, AppClientList, Asset, AssetList, ContentType, CreateAppClientOptions, CreateAssetOptions, CreateDataBundleOptions, CreateDatasetOptions, CreateDocumentOptions, CreateModelOptions, CreatePredictionsOptions, CreateSecretOptions, CreateTrainingOption, CreateTransitionOptions, CreateUserOptions, CreateWorkflowOptions, DataBundle, DataBundleList, Dataset, DatasetList, DeleteAppClientOptions, DeleteAssetOptions, DeleteDataBundleOptions, DeleteDatasetOptions, DeleteDocumentOptions, DeleteDocumentsOptions, DeleteModelOptions, DeleteTransitionOptions, DeleteUserOptions, DeleteWorkflowExecution, DeleteWorkflowOptions, ExecuteTransitionOptions, ExecuteWorkflowOptions, FieldConfig, GetAssetOptions, GetDatasetOptions, GetDocumentOptions, GetLogOptions, GetModelOptions, GetOrganizationOptions, GetTransitionExecutionOptions, GetTransitionOptions, GetUserOptions, GetWorkflowExecutionOptions, GetWorkflowOptions, LasDocument, LasDocumentList, LasDocumentWithoutContent, ListAppClientsOptions, ListAssetsOptions, ListDataBundleOptions, ListDatasetsOptions, ListDocumentsOptions, ListModelsOptions, ListPlansOptions, ListPredictionsOptions, ListSecretsOptions, ListTrainingsOptions, ListTransitionOptions, ListUsersOptions, ListWorkflowExecutionsOptions, ListWorkflowOptions, Log, Model, ModelList, Organization, Plan, PlanList, PostHeartbeatOptions, PredictionList, PredictionResponse, Secret, SecretList, Training, Transition, TransitionExecution, TransitionExecutionList, TransitionExecutionListOptions, TransitionList, TransitionType, UpdateAppClientOptions, UpdateAssetOptions, UpdateDataBundleOptions, UpdateDatasetOptions, UpdateDocumentOptions, UpdateModelOptions, UpdateOrganizationOptions, UpdateSecretOptions, UpdateTrainingOptions, UpdateTransitionExecution, UpdateTransitionOptions, UpdateUserOptions, UpdateWorkflowExecutionOptions, UpdateWorkflowOptions, User, UserList, Workflow, WorkflowExecution, WorkflowExecutionList, WorkflowList, WorkflowSpecification } from './types'; | ||
import type { AppClient, AppClientList, Asset, AssetList, ContentType, CreateAppClientOptions, CreateAssetOptions, CreateDataBundleOptions, CreateDatasetOptions, CreateDocumentOptions, CreateModelOptions, CreatePaymentMethodOptions, CreatePredictionsOptions, CreateSecretOptions, CreateTrainingOption, CreateTransitionOptions, CreateUserOptions, CreateWorkflowOptions, DataBundle, DataBundleList, Dataset, DatasetList, DeleteAppClientOptions, DeleteAssetOptions, DeleteDataBundleOptions, DeleteDatasetOptions, DeleteDocumentOptions, DeleteDocumentsOptions, DeleteModelOptions, DeleteTransitionOptions, DeleteUserOptions, DeleteWorkflowExecution, DeleteWorkflowOptions, ExecuteTransitionOptions, ExecuteWorkflowOptions, FieldConfig, GetAssetOptions, GetDatasetOptions, GetDocumentOptions, GetLogOptions, GetModelOptions, GetOrganizationOptions, GetTransitionExecutionOptions, GetTransitionOptions, GetUserOptions, GetWorkflowExecutionOptions, GetWorkflowOptions, LasDocument, LasDocumentList, LasDocumentWithoutContent, ListAppClientsOptions, ListAssetsOptions, ListDataBundleOptions, ListDatasetsOptions, ListDocumentsOptions, ListModelsOptions, ListPaymentMethodsOptions, ListPlansOptions, ListPredictionsOptions, ListSecretsOptions, ListTrainingsOptions, ListTransitionOptions, ListUsersOptions, ListWorkflowExecutionsOptions, ListWorkflowOptions, Log, Model, ModelList, Organization, PaymentMethod, PaymentMethodList, Plan, PlanList, PostHeartbeatOptions, PredictionList, PredictionResponse, Secret, SecretList, Training, Transition, TransitionExecution, TransitionExecutionList, TransitionExecutionListOptions, TransitionList, TransitionType, UpdateAppClientOptions, UpdateAssetOptions, UpdateDataBundleOptions, UpdateDatasetOptions, UpdateDocumentOptions, UpdateModelOptions, UpdateOrganizationOptions, UpdatePaymentMethodOptions, UpdateSecretOptions, UpdateTrainingOptions, UpdateTransitionExecution, UpdateTransitionOptions, UpdateUserOptions, UpdateWorkflowExecutionOptions, UpdateWorkflowOptions, User, UserList, Workflow, WorkflowExecution, WorkflowExecutionList, WorkflowList, WorkflowSpecification } from './types'; | ||
/** | ||
@@ -570,2 +570,42 @@ * A high-level http client for communicating with the Lucidtech REST API | ||
/** | ||
* List payment methods available, calls the GET /paymentMethods endpoint. | ||
* | ||
* @param options.maxResults Maximum number of results to be returned | ||
* @param options.nextToken A unique token for each page, use the returned token to retrieve the next page. | ||
* @returns PaymentMethods response from the REST API | ||
*/ | ||
listPaymentMethods(options?: ListPaymentMethodsOptions): Promise<PaymentMethodList>; | ||
/** | ||
* Creates a payment method, calls the POST /paymentMethods endpoint. | ||
* | ||
* @param options.description Optional description of payment method | ||
* @param options.name Optional name of payment method | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
createPaymentMethod(options?: CreatePaymentMethodOptions): Promise<PaymentMethod>; | ||
/** | ||
* Get payment method from the REST API, calls the GET /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
getPaymentMethod(paymentMethodId: string): Promise<PaymentMethod>; | ||
/** | ||
* Updates a payment method, calls the PATCH /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method | ||
* @param options.description Optional description of payment method | ||
* @param options.name Optional name of payment method | ||
* @param options.stripeSetupIntentSecret Optional input to confirm a payment method has been successfully set up through Stripe | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
updatePaymentMethod(paymentMethodId: string, options: UpdatePaymentMethodOptions): Promise<PaymentMethod>; | ||
/** | ||
* Deletes a payment method, calls the DELETE /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method to delete | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
deletePaymentMethod(paymentMethodId: string): Promise<PaymentMethod>; | ||
/** | ||
* List plans available, calls the GET /plans endpoint. | ||
@@ -572,0 +612,0 @@ * |
@@ -920,2 +920,62 @@ "use strict"; | ||
/** | ||
* List payment methods available, calls the GET /paymentMethods endpoint. | ||
* | ||
* @param options.maxResults Maximum number of results to be returned | ||
* @param options.nextToken A unique token for each page, use the returned token to retrieve the next page. | ||
* @returns PaymentMethods response from the REST API | ||
*/ | ||
listPaymentMethods(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.makeGetRequest('/paymentMethods', options); | ||
}); | ||
} | ||
/** | ||
* Creates a payment method, calls the POST /paymentMethods endpoint. | ||
* | ||
* @param options.description Optional description of payment method | ||
* @param options.name Optional name of payment method | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
createPaymentMethod(options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.makePostRequest('/paymentMethods', options); | ||
}); | ||
} | ||
/** | ||
* Get payment method from the REST API, calls the GET /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
getPaymentMethod(paymentMethodId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.makeGetRequest(`/paymentMethods/${paymentMethodId}`); | ||
}); | ||
} | ||
/** | ||
* Updates a payment method, calls the PATCH /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method | ||
* @param options.description Optional description of payment method | ||
* @param options.name Optional name of payment method | ||
* @param options.stripeSetupIntentSecret Optional input to confirm a payment method has been successfully set up through Stripe | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
updatePaymentMethod(paymentMethodId, options) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.makePatchRequest(`/paymentMethods/${paymentMethodId}`, options); | ||
}); | ||
} | ||
/** | ||
* Deletes a payment method, calls the DELETE /paymentMethods/{paymentMethodId} endpoint. | ||
* | ||
* @param paymentMethodId Id of the payment method to delete | ||
* @returns PaymentMethod response from REST API | ||
*/ | ||
deletePaymentMethod(paymentMethodId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return this.makeDeleteRequest(`/paymentMethods/${paymentMethodId}`); | ||
}); | ||
} | ||
/** | ||
* List plans available, calls the GET /plans endpoint. | ||
@@ -922,0 +982,0 @@ * |
@@ -384,2 +384,4 @@ /// <reference types="node" /> | ||
name?: string; | ||
paymentMethodId?: string; | ||
planId?: string; | ||
}; | ||
@@ -423,2 +425,3 @@ export declare type Organization = { | ||
organizationId: string; | ||
paymentMethodId: string | null; | ||
planId: string | null; | ||
@@ -560,2 +563,28 @@ }; | ||
}; | ||
export declare type ListPaymentMethodsOptions = RequestConfig & PaginationOptions; | ||
export declare type PaymentMethodList = { | ||
nextToken: string | null; | ||
paymentMethods: Array<PaymentMethod>; | ||
}; | ||
export declare type PaymentMethod = { | ||
createdBy: string | null; | ||
createdTime: string | null; | ||
description: string | null; | ||
details: Record<string, any> | null; | ||
name: string | null; | ||
paymentMethodId: string; | ||
stripePublishableKey?: string | null; | ||
stripeSetupIntentSecret?: string | null; | ||
updatedBy: string | null; | ||
updatedTime: string | null; | ||
}; | ||
export declare type CreatePaymentMethodOptions = { | ||
description?: string; | ||
name?: string; | ||
}; | ||
export declare type UpdatePaymentMethodOptions = { | ||
description?: string | null; | ||
name?: string | null; | ||
stripeSetupIntentSecret?: string; | ||
}; | ||
export declare type PlanCurrency = 'NOK' | 'USD' | 'EUR'; | ||
@@ -562,0 +591,0 @@ export declare type Plan = { |
{ | ||
"name": "@lucidtech/las-sdk-core", | ||
"version": "9.0.2", | ||
"version": "9.1.0", | ||
"author": "Lucidtech AS <hello@lucidtech.ai>", | ||
@@ -5,0 +5,0 @@ "maintainers": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
122708
2587