@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,34 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { CheckoutSessionCreate } from '../models/CheckoutSessionCreate';
|
|
6
|
-
import type { CheckoutSessionResponse } from '../models/CheckoutSessionResponse';
|
|
7
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
8
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
9
|
-
import { request as __request } from '../core/request';
|
|
10
|
-
export class PricesService {
|
|
11
|
-
/**
|
|
12
|
-
* Create guest checkout session by price unique_id
|
|
13
|
-
* Looks up the price by its unique_id, derives platform/item_type/item_id, and delegates to the standard guest checkout flow.
|
|
14
|
-
* @returns CheckoutSessionResponse
|
|
15
|
-
* @throws ApiError
|
|
16
|
-
*/
|
|
17
|
-
public static pricesCheckoutGuestCreate({
|
|
18
|
-
priceUniqueId,
|
|
19
|
-
requestBody,
|
|
20
|
-
}: {
|
|
21
|
-
priceUniqueId: string,
|
|
22
|
-
requestBody?: CheckoutSessionCreate,
|
|
23
|
-
}): CancelablePromise<CheckoutSessionResponse> {
|
|
24
|
-
return __request(OpenAPI, {
|
|
25
|
-
method: 'POST',
|
|
26
|
-
url: '/prices/{price_unique_id}/checkout-guest/',
|
|
27
|
-
path: {
|
|
28
|
-
'price_unique_id': priceUniqueId,
|
|
29
|
-
},
|
|
30
|
-
body: requestBody,
|
|
31
|
-
mediaType: 'application/json',
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
}
|
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { PaginatedTagList } from '../models/PaginatedTagList';
|
|
6
|
-
import type { PatchedTag } from '../models/PatchedTag';
|
|
7
|
-
import type { Tag } from '../models/Tag';
|
|
8
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
9
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
10
|
-
import { request as __request } from '../core/request';
|
|
11
|
-
export class TagsService {
|
|
12
|
-
/**
|
|
13
|
-
* List tags
|
|
14
|
-
* 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.
|
|
15
|
-
*
|
|
16
|
-
* **Required permission:** `Ibl.CRM/Tags/list`.
|
|
17
|
-
* @returns PaginatedTagList
|
|
18
|
-
* @throws ApiError
|
|
19
|
-
*/
|
|
20
|
-
public static tagsList({
|
|
21
|
-
createdAtGte,
|
|
22
|
-
createdAtLte,
|
|
23
|
-
name,
|
|
24
|
-
page,
|
|
25
|
-
pageSize,
|
|
26
|
-
}: {
|
|
27
|
-
createdAtGte?: string,
|
|
28
|
-
createdAtLte?: string,
|
|
29
|
-
name?: string,
|
|
30
|
-
/**
|
|
31
|
-
* A page number within the paginated result set.
|
|
32
|
-
*/
|
|
33
|
-
page?: number,
|
|
34
|
-
/**
|
|
35
|
-
* Number of results to return per page.
|
|
36
|
-
*/
|
|
37
|
-
pageSize?: number,
|
|
38
|
-
}): CancelablePromise<PaginatedTagList> {
|
|
39
|
-
return __request(OpenAPI, {
|
|
40
|
-
method: 'GET',
|
|
41
|
-
url: '/tags/',
|
|
42
|
-
query: {
|
|
43
|
-
'created_at__gte': createdAtGte,
|
|
44
|
-
'created_at__lte': createdAtLte,
|
|
45
|
-
'name': name,
|
|
46
|
-
'page': page,
|
|
47
|
-
'page_size': pageSize,
|
|
48
|
-
},
|
|
49
|
-
errors: {
|
|
50
|
-
401: `Authentication required.`,
|
|
51
|
-
403: `Missing required permission \`Ibl.CRM/Tags/list\`.`,
|
|
52
|
-
},
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Create a tag
|
|
57
|
-
* Creates a new Tag in your Platform. `name` must be unique within your Platform; supply `color` as a `#RRGGBB` hex string (defaults to `#888888`).
|
|
58
|
-
*
|
|
59
|
-
* **Required permission:** `Ibl.CRM/Tags/action`.
|
|
60
|
-
* @returns Tag
|
|
61
|
-
* @throws ApiError
|
|
62
|
-
*/
|
|
63
|
-
public static tagsCreate({
|
|
64
|
-
requestBody,
|
|
65
|
-
}: {
|
|
66
|
-
requestBody: Tag,
|
|
67
|
-
}): CancelablePromise<Tag> {
|
|
68
|
-
return __request(OpenAPI, {
|
|
69
|
-
method: 'POST',
|
|
70
|
-
url: '/tags/',
|
|
71
|
-
body: requestBody,
|
|
72
|
-
mediaType: 'application/json',
|
|
73
|
-
errors: {
|
|
74
|
-
400: `Validation error (duplicate name, bad color, etc.).`,
|
|
75
|
-
403: `Missing required permission \`Ibl.CRM/Tags/action\`.`,
|
|
76
|
-
},
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Retrieve a tag
|
|
81
|
-
* Returns a single Tag by id.
|
|
82
|
-
*
|
|
83
|
-
* **Required permission:** `Ibl.CRM/Tags/read`.
|
|
84
|
-
* @returns Tag
|
|
85
|
-
* @throws ApiError
|
|
86
|
-
*/
|
|
87
|
-
public static tagsRetrieve({
|
|
88
|
-
id,
|
|
89
|
-
}: {
|
|
90
|
-
/**
|
|
91
|
-
* A unique integer value identifying this tag.
|
|
92
|
-
*/
|
|
93
|
-
id: number,
|
|
94
|
-
}): CancelablePromise<Tag> {
|
|
95
|
-
return __request(OpenAPI, {
|
|
96
|
-
method: 'GET',
|
|
97
|
-
url: '/tags/{id}/',
|
|
98
|
-
path: {
|
|
99
|
-
'id': id,
|
|
100
|
-
},
|
|
101
|
-
errors: {
|
|
102
|
-
403: `Missing required permission \`Ibl.CRM/Tags/read\`.`,
|
|
103
|
-
404: `Tag not found.`,
|
|
104
|
-
},
|
|
105
|
-
});
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Replace a tag
|
|
109
|
-
* Replaces all editable fields on the Tag.
|
|
110
|
-
*
|
|
111
|
-
* **Required permission:** `Ibl.CRM/Tags/write`.
|
|
112
|
-
* @returns Tag
|
|
113
|
-
* @throws ApiError
|
|
114
|
-
*/
|
|
115
|
-
public static tagsUpdate({
|
|
116
|
-
id,
|
|
117
|
-
requestBody,
|
|
118
|
-
}: {
|
|
119
|
-
/**
|
|
120
|
-
* A unique integer value identifying this tag.
|
|
121
|
-
*/
|
|
122
|
-
id: number,
|
|
123
|
-
requestBody: Tag,
|
|
124
|
-
}): CancelablePromise<Tag> {
|
|
125
|
-
return __request(OpenAPI, {
|
|
126
|
-
method: 'PUT',
|
|
127
|
-
url: '/tags/{id}/',
|
|
128
|
-
path: {
|
|
129
|
-
'id': id,
|
|
130
|
-
},
|
|
131
|
-
body: requestBody,
|
|
132
|
-
mediaType: 'application/json',
|
|
133
|
-
errors: {
|
|
134
|
-
400: `Validation error.`,
|
|
135
|
-
403: `Missing required permission \`Ibl.CRM/Tags/write\`.`,
|
|
136
|
-
404: `Tag not found.`,
|
|
137
|
-
},
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Update a tag
|
|
142
|
-
* Updates only the supplied fields on the Tag (typically `name` or `color`).
|
|
143
|
-
*
|
|
144
|
-
* **Required permission:** `Ibl.CRM/Tags/write`.
|
|
145
|
-
* @returns Tag
|
|
146
|
-
* @throws ApiError
|
|
147
|
-
*/
|
|
148
|
-
public static tagsPartialUpdate({
|
|
149
|
-
id,
|
|
150
|
-
requestBody,
|
|
151
|
-
}: {
|
|
152
|
-
/**
|
|
153
|
-
* A unique integer value identifying this tag.
|
|
154
|
-
*/
|
|
155
|
-
id: number,
|
|
156
|
-
requestBody?: PatchedTag,
|
|
157
|
-
}): CancelablePromise<Tag> {
|
|
158
|
-
return __request(OpenAPI, {
|
|
159
|
-
method: 'PATCH',
|
|
160
|
-
url: '/tags/{id}/',
|
|
161
|
-
path: {
|
|
162
|
-
'id': id,
|
|
163
|
-
},
|
|
164
|
-
body: requestBody,
|
|
165
|
-
mediaType: 'application/json',
|
|
166
|
-
errors: {
|
|
167
|
-
400: `Validation error.`,
|
|
168
|
-
403: `Missing required permission \`Ibl.CRM/Tags/write\`.`,
|
|
169
|
-
404: `Tag not found.`,
|
|
170
|
-
},
|
|
171
|
-
});
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Delete a tag
|
|
175
|
-
* Deletes the Tag. All attachments to Persons, Organizations, and Deals are removed atomically via cascade.
|
|
176
|
-
*
|
|
177
|
-
* **Required permission:** `Ibl.CRM/Tags/delete`.
|
|
178
|
-
* @returns void
|
|
179
|
-
* @throws ApiError
|
|
180
|
-
*/
|
|
181
|
-
public static tagsDestroy({
|
|
182
|
-
id,
|
|
183
|
-
}: {
|
|
184
|
-
/**
|
|
185
|
-
* A unique integer value identifying this tag.
|
|
186
|
-
*/
|
|
187
|
-
id: number,
|
|
188
|
-
}): CancelablePromise<void> {
|
|
189
|
-
return __request(OpenAPI, {
|
|
190
|
-
method: 'DELETE',
|
|
191
|
-
url: '/tags/{id}/',
|
|
192
|
-
path: {
|
|
193
|
-
'id': id,
|
|
194
|
-
},
|
|
195
|
-
errors: {
|
|
196
|
-
403: `Missing required permission \`Ibl.CRM/Tags/delete\`.`,
|
|
197
|
-
404: `Tag not found.`,
|
|
198
|
-
},
|
|
199
|
-
});
|
|
200
|
-
}
|
|
201
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/* generated using openapi-typescript-codegen -- do not edit */
|
|
2
|
-
/* istanbul ignore file */
|
|
3
|
-
/* tslint:disable */
|
|
4
|
-
/* eslint-disable */
|
|
5
|
-
import type { CreditTransactionHistory } from '../models/CreditTransactionHistory';
|
|
6
|
-
import type { CancelablePromise } from '../core/CancelablePromise';
|
|
7
|
-
import { OpenAPI } from '../core/OpenAPI';
|
|
8
|
-
import { request as __request } from '../core/request';
|
|
9
|
-
export class TransactionsService {
|
|
10
|
-
/**
|
|
11
|
-
* List transaction history
|
|
12
|
-
* 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).
|
|
13
|
-
* @returns CreditTransactionHistory
|
|
14
|
-
* @throws ApiError
|
|
15
|
-
*/
|
|
16
|
-
public static transactionsRetrieve({
|
|
17
|
-
fromDate,
|
|
18
|
-
platformKey,
|
|
19
|
-
toDate,
|
|
20
|
-
transactionType,
|
|
21
|
-
}: {
|
|
22
|
-
/**
|
|
23
|
-
* Filter from date (YYYY-MM-DD), inclusive.
|
|
24
|
-
*/
|
|
25
|
-
fromDate?: string,
|
|
26
|
-
/**
|
|
27
|
-
* Platform key. Omit for user's own account.
|
|
28
|
-
*/
|
|
29
|
-
platformKey?: string,
|
|
30
|
-
/**
|
|
31
|
-
* Filter to date (YYYY-MM-DD), inclusive.
|
|
32
|
-
*/
|
|
33
|
-
toDate?: string,
|
|
34
|
-
/**
|
|
35
|
-
* Filter by transaction type.
|
|
36
|
-
*
|
|
37
|
-
* * `add` - add
|
|
38
|
-
* * `subtract` - subtract
|
|
39
|
-
* * `reserve` - reserve
|
|
40
|
-
* * `release` - release
|
|
41
|
-
* * `rollover` - rollover
|
|
42
|
-
* * `refund` - refund
|
|
43
|
-
*/
|
|
44
|
-
transactionType?: 'add' | 'subtract' | 'reserve' | 'release' | 'rollover' | 'refund',
|
|
45
|
-
}): CancelablePromise<CreditTransactionHistory> {
|
|
46
|
-
return __request(OpenAPI, {
|
|
47
|
-
method: 'GET',
|
|
48
|
-
url: '/transactions/',
|
|
49
|
-
query: {
|
|
50
|
-
'from_date': fromDate,
|
|
51
|
-
'platform_key': platformKey,
|
|
52
|
-
'to_date': toDate,
|
|
53
|
-
'transaction_type': transactionType,
|
|
54
|
-
},
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
}
|