@iblai/iblai-api 4.288.1-core → 4.289.0-core
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/index.cjs.js +10618 -12607
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +10619 -12593
- package/dist/index.esm.js.map +1 -1
- package/dist/index.umd.js +10618 -12607
- package/dist/index.umd.js.map +1 -1
- package/dist/types/index.d.ts +0 -15
- package/dist/types/services/BillingService.d.ts +215 -4
- package/package.json +1 -1
- package/sdk_schema.yml +10797 -14096
- package/src/core/OpenAPI.ts +1 -1
- package/src/index.ts +0 -15
- package/src/services/BillingService.ts +468 -6
- package/dist/types/services/AccessCheckService.d.ts +0 -17
- package/dist/types/services/AccountService.d.ts +0 -36
- package/dist/types/services/ActivitiesService.d.ts +0 -126
- package/dist/types/services/AutoRechargeService.d.ts +0 -14
- package/dist/types/services/CreditsService.d.ts +0 -12
- package/dist/types/services/DealsService.d.ts +0 -192
- package/dist/types/services/ItemsService.d.ts +0 -13
- package/dist/types/services/LeadSourcesService.d.ts +0 -95
- package/dist/types/services/OrganizationsService.d.ts +0 -109
- package/dist/types/services/PersonsService.d.ts +0 -168
- package/dist/types/services/PipelinesService.d.ts +0 -183
- package/dist/types/services/PlatformsService.d.ts +0 -332
- package/dist/types/services/PricesService.d.ts +0 -15
- package/dist/types/services/TagsService.d.ts +0 -96
- package/dist/types/services/TransactionsService.d.ts +0 -35
- package/src/services/AccessCheckService.ts +0 -39
- package/src/services/AccountService.ts +0 -70
- package/src/services/ActivitiesService.ts +0 -255
- package/src/services/AutoRechargeService.ts +0 -29
- package/src/services/CreditsService.ts +0 -23
- package/src/services/DealsService.ts +0 -406
- package/src/services/ItemsService.ts +0 -29
- package/src/services/LeadSourcesService.ts +0 -198
- package/src/services/OrganizationsService.ts +0 -249
- package/src/services/PersonsService.ts +0 -367
- package/src/services/PipelinesService.ts +0 -406
- package/src/services/PlatformsService.ts +0 -716
- package/src/services/PricesService.ts +0 -34
- package/src/services/TagsService.ts +0 -201
- package/src/services/TransactionsService.ts +0 -57
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import type { PaginatedTagList } from '../models/PaginatedTagList';
|
|
2
|
-
import type { PatchedTag } from '../models/PatchedTag';
|
|
3
|
-
import type { Tag } from '../models/Tag';
|
|
4
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
5
|
-
export declare class TagsService {
|
|
6
|
-
/**
|
|
7
|
-
* List tags
|
|
8
|
-
* Returns a paginated list of Tags in your Platform. Supports filtering by `name` (case-insensitive substring) and `created_at__gte`/`created_at__lte` ISO timestamp ranges.
|
|
9
|
-
*
|
|
10
|
-
* **Required permission:** `Ibl.CRM/Tags/list`.
|
|
11
|
-
* @returns PaginatedTagList
|
|
12
|
-
* @throws ApiError
|
|
13
|
-
*/
|
|
14
|
-
static tagsList({ createdAtGte, createdAtLte, name, page, pageSize, }: {
|
|
15
|
-
createdAtGte?: string;
|
|
16
|
-
createdAtLte?: string;
|
|
17
|
-
name?: string;
|
|
18
|
-
/**
|
|
19
|
-
* A page number within the paginated result set.
|
|
20
|
-
*/
|
|
21
|
-
page?: number;
|
|
22
|
-
/**
|
|
23
|
-
* Number of results to return per page.
|
|
24
|
-
*/
|
|
25
|
-
pageSize?: number;
|
|
26
|
-
}): CancelablePromise<PaginatedTagList>;
|
|
27
|
-
/**
|
|
28
|
-
* Create a tag
|
|
29
|
-
* Creates a new Tag in your Platform. `name` must be unique within your Platform; supply `color` as a `#RRGGBB` hex string (defaults to `#888888`).
|
|
30
|
-
*
|
|
31
|
-
* **Required permission:** `Ibl.CRM/Tags/action`.
|
|
32
|
-
* @returns Tag
|
|
33
|
-
* @throws ApiError
|
|
34
|
-
*/
|
|
35
|
-
static tagsCreate({ requestBody, }: {
|
|
36
|
-
requestBody: Tag;
|
|
37
|
-
}): CancelablePromise<Tag>;
|
|
38
|
-
/**
|
|
39
|
-
* Retrieve a tag
|
|
40
|
-
* Returns a single Tag by id.
|
|
41
|
-
*
|
|
42
|
-
* **Required permission:** `Ibl.CRM/Tags/read`.
|
|
43
|
-
* @returns Tag
|
|
44
|
-
* @throws ApiError
|
|
45
|
-
*/
|
|
46
|
-
static tagsRetrieve({ id, }: {
|
|
47
|
-
/**
|
|
48
|
-
* A unique integer value identifying this tag.
|
|
49
|
-
*/
|
|
50
|
-
id: number;
|
|
51
|
-
}): CancelablePromise<Tag>;
|
|
52
|
-
/**
|
|
53
|
-
* Replace a tag
|
|
54
|
-
* Replaces all editable fields on the Tag.
|
|
55
|
-
*
|
|
56
|
-
* **Required permission:** `Ibl.CRM/Tags/write`.
|
|
57
|
-
* @returns Tag
|
|
58
|
-
* @throws ApiError
|
|
59
|
-
*/
|
|
60
|
-
static tagsUpdate({ id, requestBody, }: {
|
|
61
|
-
/**
|
|
62
|
-
* A unique integer value identifying this tag.
|
|
63
|
-
*/
|
|
64
|
-
id: number;
|
|
65
|
-
requestBody: Tag;
|
|
66
|
-
}): CancelablePromise<Tag>;
|
|
67
|
-
/**
|
|
68
|
-
* Update a tag
|
|
69
|
-
* Updates only the supplied fields on the Tag (typically `name` or `color`).
|
|
70
|
-
*
|
|
71
|
-
* **Required permission:** `Ibl.CRM/Tags/write`.
|
|
72
|
-
* @returns Tag
|
|
73
|
-
* @throws ApiError
|
|
74
|
-
*/
|
|
75
|
-
static tagsPartialUpdate({ id, requestBody, }: {
|
|
76
|
-
/**
|
|
77
|
-
* A unique integer value identifying this tag.
|
|
78
|
-
*/
|
|
79
|
-
id: number;
|
|
80
|
-
requestBody?: PatchedTag;
|
|
81
|
-
}): CancelablePromise<Tag>;
|
|
82
|
-
/**
|
|
83
|
-
* Delete a tag
|
|
84
|
-
* Deletes the Tag. All attachments to Persons, Organizations, and Deals are removed atomically via cascade.
|
|
85
|
-
*
|
|
86
|
-
* **Required permission:** `Ibl.CRM/Tags/delete`.
|
|
87
|
-
* @returns void
|
|
88
|
-
* @throws ApiError
|
|
89
|
-
*/
|
|
90
|
-
static tagsDestroy({ id, }: {
|
|
91
|
-
/**
|
|
92
|
-
* A unique integer value identifying this tag.
|
|
93
|
-
*/
|
|
94
|
-
id: number;
|
|
95
|
-
}): CancelablePromise<void>;
|
|
96
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import type { CreditTransactionHistory } from '../models/CreditTransactionHistory';
|
|
2
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
3
|
-
export declare class TransactionsService {
|
|
4
|
-
/**
|
|
5
|
-
* List transaction history
|
|
6
|
-
* Paginated transaction history for the credit account. Use platform_key query param to list platform account transactions (if permitted). Filter by transaction_type, from_date (YYYY-MM-DD), to_date (YYYY-MM-DD).
|
|
7
|
-
* @returns CreditTransactionHistory
|
|
8
|
-
* @throws ApiError
|
|
9
|
-
*/
|
|
10
|
-
static transactionsRetrieve({ fromDate, platformKey, toDate, transactionType, }: {
|
|
11
|
-
/**
|
|
12
|
-
* Filter from date (YYYY-MM-DD), inclusive.
|
|
13
|
-
*/
|
|
14
|
-
fromDate?: string;
|
|
15
|
-
/**
|
|
16
|
-
* Platform key. Omit for user's own account.
|
|
17
|
-
*/
|
|
18
|
-
platformKey?: string;
|
|
19
|
-
/**
|
|
20
|
-
* Filter to date (YYYY-MM-DD), inclusive.
|
|
21
|
-
*/
|
|
22
|
-
toDate?: string;
|
|
23
|
-
/**
|
|
24
|
-
* Filter by transaction type.
|
|
25
|
-
*
|
|
26
|
-
* * `add` - add
|
|
27
|
-
* * `subtract` - subtract
|
|
28
|
-
* * `reserve` - reserve
|
|
29
|
-
* * `release` - release
|
|
30
|
-
* * `rollover` - rollover
|
|
31
|
-
* * `refund` - refund
|
|
32
|
-
*/
|
|
33
|
-
transactionType?: 'add' | 'subtract' | 'reserve' | 'release' | 'rollover' | 'refund';
|
|
34
|
-
}): CancelablePromise<CreditTransactionHistory>;
|
|
35
|
-
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { ItemAccessCheckResponse } from '../models/ItemAccessCheckResponse';
|
|
6
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
-
import { request as __request } from '../core/request';
|
|
9
|
-
export class AccessCheckService {
|
|
10
|
-
/**
|
|
11
|
-
* Check whether the authenticated user has payment access to an item.
|
|
12
|
-
* @returns ItemAccessCheckResponse
|
|
13
|
-
* @throws ApiError
|
|
14
|
-
*/
|
|
15
|
-
public static accessCheckRetrieve({
|
|
16
|
-
itemId,
|
|
17
|
-
itemType,
|
|
18
|
-
platformKey,
|
|
19
|
-
}: {
|
|
20
|
-
itemId: string,
|
|
21
|
-
itemType: string,
|
|
22
|
-
/**
|
|
23
|
-
* Platform key. Omit to resolve from request context.
|
|
24
|
-
*/
|
|
25
|
-
platformKey?: string,
|
|
26
|
-
}): CancelablePromise<ItemAccessCheckResponse> {
|
|
27
|
-
return __request(OpenAPI, {
|
|
28
|
-
method: 'GET',
|
|
29
|
-
url: '/access-check/{item_type}/{item_id}/',
|
|
30
|
-
path: {
|
|
31
|
-
'item_id': itemId,
|
|
32
|
-
'item_type': itemType,
|
|
33
|
-
},
|
|
34
|
-
query: {
|
|
35
|
-
'platform_key': platformKey,
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { CreditAccountAutoRechargeUpdate } from '../models/CreditAccountAutoRechargeUpdate';
|
|
6
|
-
import type { CreditAccountInfo } from '../models/CreditAccountInfo';
|
|
7
|
-
import type { PatchedCreditAccountAutoRechargeUpdate } from '../models/PatchedCreditAccountAutoRechargeUpdate';
|
|
8
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
-
import { request as __request } from '../core/request';
|
|
11
|
-
export class AccountService {
|
|
12
|
-
/**
|
|
13
|
-
* Get credit account information
|
|
14
|
-
* Return display credits (available_credits, has_credits, account_id) and auto-recharge settings. Pass platform_key (or key) to see platform balance if you are a platform admin.
|
|
15
|
-
* @returns CreditAccountInfo
|
|
16
|
-
* @throws ApiError
|
|
17
|
-
*/
|
|
18
|
-
public static accountRetrieve({
|
|
19
|
-
platformKey,
|
|
20
|
-
}: {
|
|
21
|
-
/**
|
|
22
|
-
* The unique key of the platform to access. If not provided, defaults to 'main' (user's own account).
|
|
23
|
-
*/
|
|
24
|
-
platformKey?: string,
|
|
25
|
-
}): CancelablePromise<CreditAccountInfo> {
|
|
26
|
-
return __request(OpenAPI, {
|
|
27
|
-
method: 'GET',
|
|
28
|
-
url: '/account/',
|
|
29
|
-
query: {
|
|
30
|
-
'platform_key': platformKey,
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Update auto-recharge preferences
|
|
36
|
-
* Update auto_recharge_threshold_usd, auto_recharge_amount_usd, auto_recharge_enabled, and/or auto_recharge_spending_limit_usd. When enabling auto-recharge, missing values are calculated: if only limit set, amount = 20% of limit; if only amount set, limit = 5x amount; if neither set, defaults are limit=20, amount=4. Pass platform_key in the request body to update platform settings.
|
|
37
|
-
* @returns CreditAccountInfo
|
|
38
|
-
* @throws ApiError
|
|
39
|
-
*/
|
|
40
|
-
public static accountUpdate({
|
|
41
|
-
requestBody,
|
|
42
|
-
}: {
|
|
43
|
-
requestBody?: CreditAccountAutoRechargeUpdate,
|
|
44
|
-
}): CancelablePromise<CreditAccountInfo> {
|
|
45
|
-
return __request(OpenAPI, {
|
|
46
|
-
method: 'PUT',
|
|
47
|
-
url: '/account/',
|
|
48
|
-
body: requestBody,
|
|
49
|
-
mediaType: 'application/json',
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Partially update auto-recharge preferences
|
|
54
|
-
* Same as PUT; partial update of auto-recharge fields.
|
|
55
|
-
* @returns CreditAccountInfo
|
|
56
|
-
* @throws ApiError
|
|
57
|
-
*/
|
|
58
|
-
public static accountPartialUpdate({
|
|
59
|
-
requestBody,
|
|
60
|
-
}: {
|
|
61
|
-
requestBody?: PatchedCreditAccountAutoRechargeUpdate,
|
|
62
|
-
}): CancelablePromise<CreditAccountInfo> {
|
|
63
|
-
return __request(OpenAPI, {
|
|
64
|
-
method: 'PATCH',
|
|
65
|
-
url: '/account/',
|
|
66
|
-
body: requestBody,
|
|
67
|
-
mediaType: 'application/json',
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
}
|
|
@@ -1,255 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { Activity } from '../models/Activity';
|
|
6
|
-
import type { PaginatedActivityList } from '../models/PaginatedActivityList';
|
|
7
|
-
import type { PatchedActivity } from '../models/PatchedActivity';
|
|
8
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
-
import { request as __request } from '../core/request';
|
|
11
|
-
export class ActivitiesService {
|
|
12
|
-
/**
|
|
13
|
-
* List activities
|
|
14
|
-
* Returns a paginated list of Activities in your Platform. Supports filtering by `type`, `is_done`, `owner`, `deal`, `person`, schedule-from ranges, and `metadata__has_key`.
|
|
15
|
-
*
|
|
16
|
-
* **Required permission:** `Ibl.CRM/Activities/list`.
|
|
17
|
-
* @returns PaginatedActivityList
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
public static activitiesList({
|
|
21
|
-
deal,
|
|
22
|
-
isDone,
|
|
23
|
-
metadataHasKey,
|
|
24
|
-
owner,
|
|
25
|
-
page,
|
|
26
|
-
pageSize,
|
|
27
|
-
person,
|
|
28
|
-
scheduleFromGte,
|
|
29
|
-
scheduleFromLte,
|
|
30
|
-
type,
|
|
31
|
-
}: {
|
|
32
|
-
deal?: number,
|
|
33
|
-
isDone?: boolean,
|
|
34
|
-
metadataHasKey?: string,
|
|
35
|
-
owner?: number,
|
|
36
|
-
/**
|
|
37
|
-
* A page number within the paginated result set.
|
|
38
|
-
*/
|
|
39
|
-
page?: number,
|
|
40
|
-
/**
|
|
41
|
-
* Number of results to return per page.
|
|
42
|
-
*/
|
|
43
|
-
pageSize?: number,
|
|
44
|
-
person?: string,
|
|
45
|
-
scheduleFromGte?: string,
|
|
46
|
-
scheduleFromLte?: string,
|
|
47
|
-
/**
|
|
48
|
-
* Interaction kind.
|
|
49
|
-
*
|
|
50
|
-
* * `call` - Call
|
|
51
|
-
* * `meeting` - Meeting
|
|
52
|
-
* * `email` - Email
|
|
53
|
-
* * `note` - Note
|
|
54
|
-
* * `task` - Task
|
|
55
|
-
* * `lunch` - Lunch
|
|
56
|
-
* * `deadline` - Deadline
|
|
57
|
-
*/
|
|
58
|
-
type?: 'call' | 'deadline' | 'email' | 'lunch' | 'meeting' | 'note' | 'task',
|
|
59
|
-
}): CancelablePromise<PaginatedActivityList> {
|
|
60
|
-
return __request(OpenAPI, {
|
|
61
|
-
method: 'GET',
|
|
62
|
-
url: '/activities/',
|
|
63
|
-
query: {
|
|
64
|
-
'deal': deal,
|
|
65
|
-
'is_done': isDone,
|
|
66
|
-
'metadata__has_key': metadataHasKey,
|
|
67
|
-
'owner': owner,
|
|
68
|
-
'page': page,
|
|
69
|
-
'page_size': pageSize,
|
|
70
|
-
'person': person,
|
|
71
|
-
'schedule_from__gte': scheduleFromGte,
|
|
72
|
-
'schedule_from__lte': scheduleFromLte,
|
|
73
|
-
'type': type,
|
|
74
|
-
},
|
|
75
|
-
errors: {
|
|
76
|
-
401: `Authentication required.`,
|
|
77
|
-
403: `Missing required permission \`Ibl.CRM/Activities/list\`.`,
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Create an activity
|
|
83
|
-
* Creates an Activity. Either `deal` or `person` must be supplied; both must belong to your Platform.
|
|
84
|
-
*
|
|
85
|
-
* **Required permission:** `Ibl.CRM/Activities/action`.
|
|
86
|
-
* @returns Activity
|
|
87
|
-
* @throws ApiError
|
|
88
|
-
*/
|
|
89
|
-
public static activitiesCreate({
|
|
90
|
-
requestBody,
|
|
91
|
-
}: {
|
|
92
|
-
requestBody: Activity,
|
|
93
|
-
}): CancelablePromise<Activity> {
|
|
94
|
-
return __request(OpenAPI, {
|
|
95
|
-
method: 'POST',
|
|
96
|
-
url: '/activities/',
|
|
97
|
-
body: requestBody,
|
|
98
|
-
mediaType: 'application/json',
|
|
99
|
-
errors: {
|
|
100
|
-
400: `Validation error.`,
|
|
101
|
-
403: `Missing required permission \`Ibl.CRM/Activities/action\`.`,
|
|
102
|
-
},
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Retrieve an activity
|
|
107
|
-
* Returns a single Activity by id.
|
|
108
|
-
*
|
|
109
|
-
* **Required permission:** `Ibl.CRM/Activities/read`.
|
|
110
|
-
* @returns Activity
|
|
111
|
-
* @throws ApiError
|
|
112
|
-
*/
|
|
113
|
-
public static activitiesRetrieve({
|
|
114
|
-
id,
|
|
115
|
-
}: {
|
|
116
|
-
/**
|
|
117
|
-
* A unique integer value identifying this activity.
|
|
118
|
-
*/
|
|
119
|
-
id: number,
|
|
120
|
-
}): CancelablePromise<Activity> {
|
|
121
|
-
return __request(OpenAPI, {
|
|
122
|
-
method: 'GET',
|
|
123
|
-
url: '/activities/{id}/',
|
|
124
|
-
path: {
|
|
125
|
-
'id': id,
|
|
126
|
-
},
|
|
127
|
-
errors: {
|
|
128
|
-
403: `Missing required permission \`Ibl.CRM/Activities/read\`.`,
|
|
129
|
-
404: `Activity not found.`,
|
|
130
|
-
},
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Replace an activity
|
|
135
|
-
* Replaces all editable fields on the Activity.
|
|
136
|
-
*
|
|
137
|
-
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
138
|
-
* @returns Activity
|
|
139
|
-
* @throws ApiError
|
|
140
|
-
*/
|
|
141
|
-
public static activitiesUpdate({
|
|
142
|
-
id,
|
|
143
|
-
requestBody,
|
|
144
|
-
}: {
|
|
145
|
-
/**
|
|
146
|
-
* A unique integer value identifying this activity.
|
|
147
|
-
*/
|
|
148
|
-
id: number,
|
|
149
|
-
requestBody: Activity,
|
|
150
|
-
}): CancelablePromise<Activity> {
|
|
151
|
-
return __request(OpenAPI, {
|
|
152
|
-
method: 'PUT',
|
|
153
|
-
url: '/activities/{id}/',
|
|
154
|
-
path: {
|
|
155
|
-
'id': id,
|
|
156
|
-
},
|
|
157
|
-
body: requestBody,
|
|
158
|
-
mediaType: 'application/json',
|
|
159
|
-
errors: {
|
|
160
|
-
400: `Validation error.`,
|
|
161
|
-
403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
|
|
162
|
-
404: `Activity not found.`,
|
|
163
|
-
},
|
|
164
|
-
});
|
|
165
|
-
}
|
|
166
|
-
/**
|
|
167
|
-
* Update an activity
|
|
168
|
-
* Updates only the supplied fields on the Activity.
|
|
169
|
-
*
|
|
170
|
-
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
171
|
-
* @returns Activity
|
|
172
|
-
* @throws ApiError
|
|
173
|
-
*/
|
|
174
|
-
public static activitiesPartialUpdate({
|
|
175
|
-
id,
|
|
176
|
-
requestBody,
|
|
177
|
-
}: {
|
|
178
|
-
/**
|
|
179
|
-
* A unique integer value identifying this activity.
|
|
180
|
-
*/
|
|
181
|
-
id: number,
|
|
182
|
-
requestBody?: PatchedActivity,
|
|
183
|
-
}): CancelablePromise<Activity> {
|
|
184
|
-
return __request(OpenAPI, {
|
|
185
|
-
method: 'PATCH',
|
|
186
|
-
url: '/activities/{id}/',
|
|
187
|
-
path: {
|
|
188
|
-
'id': id,
|
|
189
|
-
},
|
|
190
|
-
body: requestBody,
|
|
191
|
-
mediaType: 'application/json',
|
|
192
|
-
errors: {
|
|
193
|
-
400: `Validation error.`,
|
|
194
|
-
403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
|
|
195
|
-
404: `Activity not found.`,
|
|
196
|
-
},
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* Delete an activity
|
|
201
|
-
* Deletes the Activity.
|
|
202
|
-
*
|
|
203
|
-
* **Required permission:** `Ibl.CRM/Activities/delete`.
|
|
204
|
-
* @returns void
|
|
205
|
-
* @throws ApiError
|
|
206
|
-
*/
|
|
207
|
-
public static activitiesDestroy({
|
|
208
|
-
id,
|
|
209
|
-
}: {
|
|
210
|
-
/**
|
|
211
|
-
* A unique integer value identifying this activity.
|
|
212
|
-
*/
|
|
213
|
-
id: number,
|
|
214
|
-
}): CancelablePromise<void> {
|
|
215
|
-
return __request(OpenAPI, {
|
|
216
|
-
method: 'DELETE',
|
|
217
|
-
url: '/activities/{id}/',
|
|
218
|
-
path: {
|
|
219
|
-
'id': id,
|
|
220
|
-
},
|
|
221
|
-
errors: {
|
|
222
|
-
403: `Missing required permission \`Ibl.CRM/Activities/delete\`.`,
|
|
223
|
-
404: `Activity not found.`,
|
|
224
|
-
},
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
/**
|
|
228
|
-
* Mark an activity as done
|
|
229
|
-
* Flips `is_done=True` and stamps `done_at` if it isn't already set. Idempotent — calling on an already-done Activity preserves the original `done_at`.
|
|
230
|
-
*
|
|
231
|
-
* **Required permission:** `Ibl.CRM/Activities/write`.
|
|
232
|
-
* @returns Activity
|
|
233
|
-
* @throws ApiError
|
|
234
|
-
*/
|
|
235
|
-
public static activitiesDoneCreate({
|
|
236
|
-
id,
|
|
237
|
-
}: {
|
|
238
|
-
/**
|
|
239
|
-
* A unique integer value identifying this activity.
|
|
240
|
-
*/
|
|
241
|
-
id: number,
|
|
242
|
-
}): CancelablePromise<Activity> {
|
|
243
|
-
return __request(OpenAPI, {
|
|
244
|
-
method: 'POST',
|
|
245
|
-
url: '/activities/{id}/done/',
|
|
246
|
-
path: {
|
|
247
|
-
'id': id,
|
|
248
|
-
},
|
|
249
|
-
errors: {
|
|
250
|
-
403: `Missing required permission \`Ibl.CRM/Activities/write\`.`,
|
|
251
|
-
404: `Activity not found.`,
|
|
252
|
-
},
|
|
253
|
-
});
|
|
254
|
-
}
|
|
255
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { AutoRechargeTriggerRequest } from '../models/AutoRechargeTriggerRequest';
|
|
6
|
-
import type { AutoRechargeTriggerResponse } from '../models/AutoRechargeTriggerResponse';
|
|
7
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
-
import { request as __request } from '../core/request';
|
|
10
|
-
export class AutoRechargeService {
|
|
11
|
-
/**
|
|
12
|
-
* Trigger auto-recharge or manual top-up
|
|
13
|
-
* With amount_usd: manual top-up (charge that amount, add credits; no threshold/limit/cooldown). Without amount_usd: run auto-recharge once if enabled and balance below threshold. Returns 400 if skipped or failed (e.g. no payment method, cooldown). Pass platform_key in request body.
|
|
14
|
-
* @returns AutoRechargeTriggerResponse
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
public static autoRechargeTriggerCreate({
|
|
18
|
-
requestBody,
|
|
19
|
-
}: {
|
|
20
|
-
requestBody?: AutoRechargeTriggerRequest,
|
|
21
|
-
}): CancelablePromise<AutoRechargeTriggerResponse> {
|
|
22
|
-
return __request(OpenAPI, {
|
|
23
|
-
method: 'POST',
|
|
24
|
-
url: '/auto-recharge/trigger/',
|
|
25
|
-
body: requestBody,
|
|
26
|
-
mediaType: 'application/json',
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
6
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
7
|
-
import { request as __request } from '../core/request';
|
|
8
|
-
export class CreditsService {
|
|
9
|
-
/**
|
|
10
|
-
* Sample endpoint protected by @consume_credits (opt-in).
|
|
11
|
-
*
|
|
12
|
-
* Balance is checked before the view runs. If insufficient, 402 with
|
|
13
|
-
* pricing_table is returned; otherwise the view runs and 1 credit is consumed.
|
|
14
|
-
* @returns any No response body
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
public static creditsSampleActionCreate(): CancelablePromise<any> {
|
|
18
|
-
return __request(OpenAPI, {
|
|
19
|
-
method: 'POST',
|
|
20
|
-
url: '/credits/sample-action/',
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|