@23blocks/angular 4.3.0 → 5.0.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/index.esm.js +1072 -19
- package/dist/src/lib/assets/assets.service.d.ts +57 -1
- package/dist/src/lib/assets/assets.service.d.ts.map +1 -1
- package/dist/src/lib/campaigns/campaigns.service.d.ts +41 -1
- package/dist/src/lib/campaigns/campaigns.service.d.ts.map +1 -1
- package/dist/src/lib/content/content.service.d.ts +15 -1
- package/dist/src/lib/content/content.service.d.ts.map +1 -1
- package/dist/src/lib/products/products.service.d.ts +42 -1
- package/dist/src/lib/products/products.service.d.ts.map +1 -1
- package/dist/src/lib/providers.d.ts +5 -5
- package/dist/src/lib/rewards/rewards.service.d.ts +31 -1
- package/dist/src/lib/rewards/rewards.service.d.ts.map +1 -1
- package/dist/src/lib/sales/sales.service.d.ts +34 -1
- package/dist/src/lib/sales/sales.service.d.ts.map +1 -1
- package/dist/src/lib/search/search.service.d.ts +16 -2
- package/dist/src/lib/search/search.service.d.ts.map +1 -1
- package/dist/src/lib/simple-providers.d.ts +6 -6
- package/dist/src/lib/simple-providers.d.ts.map +1 -1
- package/dist/src/lib/university/university.service.d.ts +92 -1
- package/dist/src/lib/university/university.service.d.ts.map +1 -1
- package/dist/src/lib/wallet/wallet.service.d.ts +12 -1
- package/dist/src/lib/wallet/wallet.service.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -112,9 +112,9 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
112
112
|
*/ const PROVIDER_CONFIG = new InjectionToken('23blocks.provider-config');
|
|
113
113
|
/** @deprecated Use PROVIDER_CONFIG instead */ const SIMPLE_CONFIG = PROVIDER_CONFIG;
|
|
114
114
|
/**
|
|
115
|
-
* Generate storage key scoped to
|
|
116
|
-
*/ function getStorageKey(type,
|
|
117
|
-
const scope = tenantId ? `${
|
|
115
|
+
* Generate storage key scoped to API key and tenant
|
|
116
|
+
*/ function getStorageKey(type, apiKey, tenantId) {
|
|
117
|
+
const scope = tenantId ? `${apiKey}_${tenantId}` : apiKey;
|
|
118
118
|
return `23blocks_${scope}_${type}_token`;
|
|
119
119
|
}
|
|
120
120
|
/**
|
|
@@ -136,10 +136,10 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
136
136
|
};
|
|
137
137
|
/**
|
|
138
138
|
* Create a token manager with scoped storage keys and cross-tab sync
|
|
139
|
-
*/ function createTokenManager(
|
|
139
|
+
*/ function createTokenManager(apiKey, storageType, tenantId) {
|
|
140
140
|
const isBrowser = typeof window !== 'undefined' && typeof window.localStorage !== 'undefined';
|
|
141
|
-
const accessTokenKey = getStorageKey('access',
|
|
142
|
-
const refreshTokenKey = getStorageKey('refresh',
|
|
141
|
+
const accessTokenKey = getStorageKey('access', apiKey, tenantId);
|
|
142
|
+
const refreshTokenKey = getStorageKey('refresh', apiKey, tenantId);
|
|
143
143
|
let storage;
|
|
144
144
|
if (!isBrowser) {
|
|
145
145
|
storage = new MemoryStorage();
|
|
@@ -217,7 +217,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
217
217
|
credentials: config.authMode === 'cookie' ? 'include' : undefined,
|
|
218
218
|
headers: ()=>{
|
|
219
219
|
const headers = _({}, config.headers, {
|
|
220
|
-
'
|
|
220
|
+
'api-key': config.apiKey
|
|
221
221
|
});
|
|
222
222
|
if (config.tenantId) {
|
|
223
223
|
headers['tenant-id'] = config.tenantId;
|
|
@@ -251,7 +251,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
251
251
|
* export const appConfig: ApplicationConfig = {
|
|
252
252
|
* providers: [
|
|
253
253
|
* provideBlocks23({
|
|
254
|
-
*
|
|
254
|
+
* apiKey: 'your-api-key',
|
|
255
255
|
* urls: {
|
|
256
256
|
* authentication: 'https://gateway.23blocks.com',
|
|
257
257
|
* crm: 'https://crm.23blocks.com',
|
|
@@ -267,7 +267,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
267
267
|
* export const appConfig: ApplicationConfig = {
|
|
268
268
|
* providers: [
|
|
269
269
|
* provideBlocks23({
|
|
270
|
-
*
|
|
270
|
+
* apiKey: 'your-api-key',
|
|
271
271
|
* authMode: 'cookie',
|
|
272
272
|
* urls: {
|
|
273
273
|
* authentication: 'https://gateway.23blocks.com',
|
|
@@ -280,7 +280,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
280
280
|
*/ function provideBlocks23(config) {
|
|
281
281
|
// Block config for all services
|
|
282
282
|
const blockConfig = {
|
|
283
|
-
|
|
283
|
+
apiKey: config.apiKey,
|
|
284
284
|
tenantId: config.tenantId
|
|
285
285
|
};
|
|
286
286
|
// Helper to create transport provider for a service URL
|
|
@@ -306,7 +306,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
306
306
|
useFactory: ()=>{
|
|
307
307
|
var _config_storage;
|
|
308
308
|
const storage = (_config_storage = config.storage) != null ? _config_storage : 'localStorage';
|
|
309
|
-
return createTokenManager(config.
|
|
309
|
+
return createTokenManager(config.apiKey, storage, config.tenantId);
|
|
310
310
|
}
|
|
311
311
|
},
|
|
312
312
|
// Per-service transport factories (null if URL not configured)
|
|
@@ -440,7 +440,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
440
440
|
* @NgModule({
|
|
441
441
|
* providers: [
|
|
442
442
|
* ...getBlocks23Providers({
|
|
443
|
-
*
|
|
443
|
+
* apiKey: 'your-api-key',
|
|
444
444
|
* urls: {
|
|
445
445
|
* authentication: 'https://gateway.23blocks.com',
|
|
446
446
|
* crm: 'https://crm.23blocks.com',
|
|
@@ -453,7 +453,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
453
453
|
*/ function getBlocks23Providers(config) {
|
|
454
454
|
// Block config for all services
|
|
455
455
|
const blockConfig = {
|
|
456
|
-
|
|
456
|
+
apiKey: config.apiKey,
|
|
457
457
|
tenantId: config.tenantId
|
|
458
458
|
};
|
|
459
459
|
// Helper to create transport provider for a service URL
|
|
@@ -479,7 +479,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
479
479
|
useFactory: ()=>{
|
|
480
480
|
var _config_storage;
|
|
481
481
|
const storage = (_config_storage = config.storage) != null ? _config_storage : 'localStorage';
|
|
482
|
-
return createTokenManager(config.
|
|
482
|
+
return createTokenManager(config.apiKey, storage, config.tenantId);
|
|
483
483
|
}
|
|
484
484
|
},
|
|
485
485
|
// Per-service transport factories (null if URL not configured)
|
|
@@ -616,10 +616,10 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
616
616
|
* providers: [
|
|
617
617
|
* provide23Blocks({
|
|
618
618
|
* transport,
|
|
619
|
-
* authentication: {
|
|
620
|
-
* search: {
|
|
621
|
-
* products: {
|
|
622
|
-
* crm: {
|
|
619
|
+
* authentication: { apiKey: 'my-api-key' },
|
|
620
|
+
* search: { apiKey: 'my-api-key' },
|
|
621
|
+
* products: { apiKey: 'my-api-key' },
|
|
622
|
+
* crm: { apiKey: 'my-api-key' },
|
|
623
623
|
* }),
|
|
624
624
|
* ],
|
|
625
625
|
* };
|
|
@@ -754,7 +754,7 @@ import { createUniversityBlock } from '@23blocks/block-university';
|
|
|
754
754
|
* providers: [
|
|
755
755
|
* ...get23BlocksProviders({
|
|
756
756
|
* transport,
|
|
757
|
-
* authentication: {
|
|
757
|
+
* authentication: { apiKey: 'my-api-key' },
|
|
758
758
|
* }),
|
|
759
759
|
* ],
|
|
760
760
|
* })
|
|
@@ -1580,6 +1580,48 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
1580
1580
|
return from(this.ensureConfigured().favorites.isFavorite(entityUniqueId));
|
|
1581
1581
|
}
|
|
1582
1582
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1583
|
+
// Entities Service
|
|
1584
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1585
|
+
listEntities(params) {
|
|
1586
|
+
return from(this.ensureConfigured().entities.list(params));
|
|
1587
|
+
}
|
|
1588
|
+
getEntity(uniqueId) {
|
|
1589
|
+
return from(this.ensureConfigured().entities.get(uniqueId));
|
|
1590
|
+
}
|
|
1591
|
+
registerEntity(uniqueId, data) {
|
|
1592
|
+
return from(this.ensureConfigured().entities.register(uniqueId, data));
|
|
1593
|
+
}
|
|
1594
|
+
updateEntity(uniqueId, data) {
|
|
1595
|
+
return from(this.ensureConfigured().entities.update(uniqueId, data));
|
|
1596
|
+
}
|
|
1597
|
+
deleteEntity(uniqueId) {
|
|
1598
|
+
return from(this.ensureConfigured().entities.delete(uniqueId));
|
|
1599
|
+
}
|
|
1600
|
+
listRegisteredEntityTypes() {
|
|
1601
|
+
return from(this.ensureConfigured().entities.listEntityTypes());
|
|
1602
|
+
}
|
|
1603
|
+
getEntityTypeSchema(entityType) {
|
|
1604
|
+
return from(this.ensureConfigured().entities.getEntityTypeSchema(entityType));
|
|
1605
|
+
}
|
|
1606
|
+
searchByCopilot(data) {
|
|
1607
|
+
return from(this.ensureConfigured().entities.searchByCopilot(data));
|
|
1608
|
+
}
|
|
1609
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1610
|
+
// Identities Service
|
|
1611
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1612
|
+
listIdentities(params) {
|
|
1613
|
+
return from(this.ensureConfigured().identities.list(params));
|
|
1614
|
+
}
|
|
1615
|
+
getIdentity(uniqueId) {
|
|
1616
|
+
return from(this.ensureConfigured().identities.get(uniqueId));
|
|
1617
|
+
}
|
|
1618
|
+
registerIdentity(uniqueId, data) {
|
|
1619
|
+
return from(this.ensureConfigured().identities.register(uniqueId, data));
|
|
1620
|
+
}
|
|
1621
|
+
updateIdentity(uniqueId, data) {
|
|
1622
|
+
return from(this.ensureConfigured().identities.update(uniqueId, data));
|
|
1623
|
+
}
|
|
1624
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1583
1625
|
// Direct Block Access (for advanced usage)
|
|
1584
1626
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1585
1627
|
/**
|
|
@@ -1857,6 +1899,147 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
1857
1899
|
return from(this.ensureConfigured().collections.get(uniqueId));
|
|
1858
1900
|
}
|
|
1859
1901
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1902
|
+
// Product Sets Service
|
|
1903
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1904
|
+
listProductSets(params) {
|
|
1905
|
+
return from(this.ensureConfigured().productSets.list(params));
|
|
1906
|
+
}
|
|
1907
|
+
getProductSet(uniqueId) {
|
|
1908
|
+
return from(this.ensureConfigured().productSets.get(uniqueId));
|
|
1909
|
+
}
|
|
1910
|
+
createProductSet(data) {
|
|
1911
|
+
return from(this.ensureConfigured().productSets.create(data));
|
|
1912
|
+
}
|
|
1913
|
+
updateProductSet(uniqueId, data) {
|
|
1914
|
+
return from(this.ensureConfigured().productSets.update(uniqueId, data));
|
|
1915
|
+
}
|
|
1916
|
+
deleteProductSet(uniqueId) {
|
|
1917
|
+
return from(this.ensureConfigured().productSets.delete(uniqueId));
|
|
1918
|
+
}
|
|
1919
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1920
|
+
// Shopping Lists Service
|
|
1921
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1922
|
+
listShoppingLists(params) {
|
|
1923
|
+
return from(this.ensureConfigured().shoppingLists.list(params));
|
|
1924
|
+
}
|
|
1925
|
+
getShoppingList(uniqueId) {
|
|
1926
|
+
return from(this.ensureConfigured().shoppingLists.get(uniqueId));
|
|
1927
|
+
}
|
|
1928
|
+
createShoppingList(data) {
|
|
1929
|
+
return from(this.ensureConfigured().shoppingLists.create(data));
|
|
1930
|
+
}
|
|
1931
|
+
updateShoppingList(uniqueId, data) {
|
|
1932
|
+
return from(this.ensureConfigured().shoppingLists.update(uniqueId, data));
|
|
1933
|
+
}
|
|
1934
|
+
deleteShoppingList(uniqueId) {
|
|
1935
|
+
return from(this.ensureConfigured().shoppingLists.delete(uniqueId));
|
|
1936
|
+
}
|
|
1937
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1938
|
+
// Promotions Service
|
|
1939
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1940
|
+
listProductPromotions(params) {
|
|
1941
|
+
return from(this.ensureConfigured().promotions.list(params));
|
|
1942
|
+
}
|
|
1943
|
+
getProductPromotion(uniqueId) {
|
|
1944
|
+
return from(this.ensureConfigured().promotions.get(uniqueId));
|
|
1945
|
+
}
|
|
1946
|
+
createProductPromotion(data) {
|
|
1947
|
+
return from(this.ensureConfigured().promotions.create(data));
|
|
1948
|
+
}
|
|
1949
|
+
updateProductPromotion(uniqueId, data) {
|
|
1950
|
+
return from(this.ensureConfigured().promotions.update(uniqueId, data));
|
|
1951
|
+
}
|
|
1952
|
+
deleteProductPromotion(uniqueId) {
|
|
1953
|
+
return from(this.ensureConfigured().promotions.delete(uniqueId));
|
|
1954
|
+
}
|
|
1955
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1956
|
+
// Prices Service
|
|
1957
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1958
|
+
listProductPrices(params) {
|
|
1959
|
+
return from(this.ensureConfigured().prices.list(params));
|
|
1960
|
+
}
|
|
1961
|
+
getProductPrice(uniqueId) {
|
|
1962
|
+
return from(this.ensureConfigured().prices.get(uniqueId));
|
|
1963
|
+
}
|
|
1964
|
+
createProductPrice(data) {
|
|
1965
|
+
return from(this.ensureConfigured().prices.create(data));
|
|
1966
|
+
}
|
|
1967
|
+
updateProductPrice(uniqueId, data) {
|
|
1968
|
+
return from(this.ensureConfigured().prices.update(uniqueId, data));
|
|
1969
|
+
}
|
|
1970
|
+
deleteProductPrice(uniqueId) {
|
|
1971
|
+
return from(this.ensureConfigured().prices.delete(uniqueId));
|
|
1972
|
+
}
|
|
1973
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1974
|
+
// Filters Service
|
|
1975
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1976
|
+
listProductFilters(params) {
|
|
1977
|
+
return from(this.ensureConfigured().filters.list(params));
|
|
1978
|
+
}
|
|
1979
|
+
getProductFilter(uniqueId) {
|
|
1980
|
+
return from(this.ensureConfigured().filters.get(uniqueId));
|
|
1981
|
+
}
|
|
1982
|
+
createProductFilter(data) {
|
|
1983
|
+
return from(this.ensureConfigured().filters.create(data));
|
|
1984
|
+
}
|
|
1985
|
+
updateProductFilter(uniqueId, data) {
|
|
1986
|
+
return from(this.ensureConfigured().filters.update(uniqueId, data));
|
|
1987
|
+
}
|
|
1988
|
+
deleteProductFilter(uniqueId) {
|
|
1989
|
+
return from(this.ensureConfigured().filters.delete(uniqueId));
|
|
1990
|
+
}
|
|
1991
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1992
|
+
// Addons Service
|
|
1993
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1994
|
+
listAddons(productUniqueId) {
|
|
1995
|
+
return from(this.ensureConfigured().addons.list(productUniqueId));
|
|
1996
|
+
}
|
|
1997
|
+
addAddon(productUniqueId, addonProductUniqueId) {
|
|
1998
|
+
return from(this.ensureConfigured().addons.add(productUniqueId, addonProductUniqueId));
|
|
1999
|
+
}
|
|
2000
|
+
removeAddon(productUniqueId, addonUniqueId) {
|
|
2001
|
+
return from(this.ensureConfigured().addons.remove(productUniqueId, addonUniqueId));
|
|
2002
|
+
}
|
|
2003
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2004
|
+
// My Carts Service
|
|
2005
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2006
|
+
getMyCart(uniqueId) {
|
|
2007
|
+
return from(this.ensureConfigured().myCarts.get(uniqueId));
|
|
2008
|
+
}
|
|
2009
|
+
createMyCart() {
|
|
2010
|
+
return from(this.ensureConfigured().myCarts.create());
|
|
2011
|
+
}
|
|
2012
|
+
updateMyCart(uniqueId, data) {
|
|
2013
|
+
return from(this.ensureConfigured().myCarts.update(uniqueId, data));
|
|
2014
|
+
}
|
|
2015
|
+
addToMyCart(data) {
|
|
2016
|
+
return from(this.ensureConfigured().myCarts.addToCart(data));
|
|
2017
|
+
}
|
|
2018
|
+
checkoutMyCart(uniqueId) {
|
|
2019
|
+
return from(this.ensureConfigured().myCarts.checkout(uniqueId));
|
|
2020
|
+
}
|
|
2021
|
+
orderAllMyCart(uniqueId) {
|
|
2022
|
+
return from(this.ensureConfigured().myCarts.orderAll(uniqueId));
|
|
2023
|
+
}
|
|
2024
|
+
cancelAllMyCart(uniqueId) {
|
|
2025
|
+
return from(this.ensureConfigured().myCarts.cancelAll(uniqueId));
|
|
2026
|
+
}
|
|
2027
|
+
deleteMyCart(uniqueId) {
|
|
2028
|
+
return from(this.ensureConfigured().myCarts.delete(uniqueId));
|
|
2029
|
+
}
|
|
2030
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2031
|
+
// Remarketing Service
|
|
2032
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2033
|
+
getAbandonedCarts(params) {
|
|
2034
|
+
return from(this.ensureConfigured().remarketing.getAbandonedCarts(params));
|
|
2035
|
+
}
|
|
2036
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2037
|
+
// Visitors Service
|
|
2038
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
2039
|
+
createVisitor(data) {
|
|
2040
|
+
return from(this.ensureConfigured().visitors.create(data));
|
|
2041
|
+
}
|
|
2042
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
1860
2043
|
// Direct Block Access (for advanced usage)
|
|
1861
2044
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
1862
2045
|
/**
|
|
@@ -2266,6 +2449,51 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
2266
2449
|
return from(this.ensureConfigured().tags.delete(uniqueId));
|
|
2267
2450
|
}
|
|
2268
2451
|
// ───────────────────────────────────────────────────────────────────────────
|
|
2452
|
+
// Users Service
|
|
2453
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
2454
|
+
listContentUsers(params) {
|
|
2455
|
+
return from(this.ensureConfigured().users.list(params));
|
|
2456
|
+
}
|
|
2457
|
+
getContentUser(uniqueId) {
|
|
2458
|
+
return from(this.ensureConfigured().users.get(uniqueId));
|
|
2459
|
+
}
|
|
2460
|
+
registerContentUser(uniqueId, data) {
|
|
2461
|
+
return from(this.ensureConfigured().users.register(uniqueId, data));
|
|
2462
|
+
}
|
|
2463
|
+
updateContentUser(uniqueId, data) {
|
|
2464
|
+
return from(this.ensureConfigured().users.update(uniqueId, data));
|
|
2465
|
+
}
|
|
2466
|
+
getUserDrafts(uniqueId) {
|
|
2467
|
+
return from(this.ensureConfigured().users.getDrafts(uniqueId));
|
|
2468
|
+
}
|
|
2469
|
+
getUserPosts(uniqueId) {
|
|
2470
|
+
return from(this.ensureConfigured().users.getPosts(uniqueId));
|
|
2471
|
+
}
|
|
2472
|
+
getUserComments(uniqueId) {
|
|
2473
|
+
return from(this.ensureConfigured().users.getComments(uniqueId));
|
|
2474
|
+
}
|
|
2475
|
+
getUserActivities(uniqueId) {
|
|
2476
|
+
return from(this.ensureConfigured().users.getActivities(uniqueId));
|
|
2477
|
+
}
|
|
2478
|
+
addUserTag(uniqueId, tagUniqueId) {
|
|
2479
|
+
return from(this.ensureConfigured().users.addTag(uniqueId, tagUniqueId));
|
|
2480
|
+
}
|
|
2481
|
+
removeUserTag(uniqueId, tagUniqueId) {
|
|
2482
|
+
return from(this.ensureConfigured().users.removeTag(uniqueId, tagUniqueId));
|
|
2483
|
+
}
|
|
2484
|
+
getUserFollowers(uniqueId) {
|
|
2485
|
+
return from(this.ensureConfigured().users.getFollowers(uniqueId));
|
|
2486
|
+
}
|
|
2487
|
+
getUserFollowing(uniqueId) {
|
|
2488
|
+
return from(this.ensureConfigured().users.getFollowing(uniqueId));
|
|
2489
|
+
}
|
|
2490
|
+
followContentUser(uniqueId, targetUserUniqueId) {
|
|
2491
|
+
return from(this.ensureConfigured().users.followUser(uniqueId, targetUserUniqueId));
|
|
2492
|
+
}
|
|
2493
|
+
unfollowContentUser(uniqueId, targetUserUniqueId) {
|
|
2494
|
+
return from(this.ensureConfigured().users.unfollowUser(uniqueId, targetUserUniqueId));
|
|
2495
|
+
}
|
|
2496
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
2269
2497
|
// Direct Block Access (for advanced usage)
|
|
2270
2498
|
// ───────────────────────────────────────────────────────────────────────────
|
|
2271
2499
|
/**
|
|
@@ -3178,6 +3406,201 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3178
3406
|
return from(this.ensureConfigured().audits.listByAsset(assetUniqueId, params));
|
|
3179
3407
|
}
|
|
3180
3408
|
// ───────────────────────────────────────────────────────────────────────────
|
|
3409
|
+
// Categories Service
|
|
3410
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3411
|
+
listCategories(params) {
|
|
3412
|
+
return from(this.ensureConfigured().categories.list(params));
|
|
3413
|
+
}
|
|
3414
|
+
getCategory(uniqueId) {
|
|
3415
|
+
return from(this.ensureConfigured().categories.get(uniqueId));
|
|
3416
|
+
}
|
|
3417
|
+
createCategory(data) {
|
|
3418
|
+
return from(this.ensureConfigured().categories.create(data));
|
|
3419
|
+
}
|
|
3420
|
+
updateCategory(uniqueId, data) {
|
|
3421
|
+
return from(this.ensureConfigured().categories.update(uniqueId, data));
|
|
3422
|
+
}
|
|
3423
|
+
deleteCategory(uniqueId) {
|
|
3424
|
+
return from(this.ensureConfigured().categories.delete(uniqueId));
|
|
3425
|
+
}
|
|
3426
|
+
deleteCategoryCascade(uniqueId) {
|
|
3427
|
+
return from(this.ensureConfigured().categories.deleteCascade(uniqueId));
|
|
3428
|
+
}
|
|
3429
|
+
presignCategoryImage(uniqueId) {
|
|
3430
|
+
return from(this.ensureConfigured().categories.presignImage(uniqueId));
|
|
3431
|
+
}
|
|
3432
|
+
createCategoryImage(uniqueId, data) {
|
|
3433
|
+
return from(this.ensureConfigured().categories.createImage(uniqueId, data));
|
|
3434
|
+
}
|
|
3435
|
+
deleteCategoryImage(uniqueId, imageUniqueId) {
|
|
3436
|
+
return from(this.ensureConfigured().categories.deleteImage(uniqueId, imageUniqueId));
|
|
3437
|
+
}
|
|
3438
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3439
|
+
// Tags Service
|
|
3440
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3441
|
+
listTags(params) {
|
|
3442
|
+
return from(this.ensureConfigured().tags.list(params));
|
|
3443
|
+
}
|
|
3444
|
+
getTag(uniqueId) {
|
|
3445
|
+
return from(this.ensureConfigured().tags.get(uniqueId));
|
|
3446
|
+
}
|
|
3447
|
+
createTag(data) {
|
|
3448
|
+
return from(this.ensureConfigured().tags.create(data));
|
|
3449
|
+
}
|
|
3450
|
+
updateTag(uniqueId, data) {
|
|
3451
|
+
return from(this.ensureConfigured().tags.update(uniqueId, data));
|
|
3452
|
+
}
|
|
3453
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3454
|
+
// Vendors Service
|
|
3455
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3456
|
+
listVendors(params) {
|
|
3457
|
+
return from(this.ensureConfigured().vendors.list(params));
|
|
3458
|
+
}
|
|
3459
|
+
getVendor(uniqueId) {
|
|
3460
|
+
return from(this.ensureConfigured().vendors.get(uniqueId));
|
|
3461
|
+
}
|
|
3462
|
+
createVendor(data) {
|
|
3463
|
+
return from(this.ensureConfigured().vendors.create(data));
|
|
3464
|
+
}
|
|
3465
|
+
updateVendor(uniqueId, data) {
|
|
3466
|
+
return from(this.ensureConfigured().vendors.update(uniqueId, data));
|
|
3467
|
+
}
|
|
3468
|
+
deleteVendor(uniqueId) {
|
|
3469
|
+
return from(this.ensureConfigured().vendors.delete(uniqueId));
|
|
3470
|
+
}
|
|
3471
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3472
|
+
// Warehouses Service
|
|
3473
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3474
|
+
listWarehouses(params) {
|
|
3475
|
+
return from(this.ensureConfigured().warehouses.list(params));
|
|
3476
|
+
}
|
|
3477
|
+
getWarehouse(uniqueId) {
|
|
3478
|
+
return from(this.ensureConfigured().warehouses.get(uniqueId));
|
|
3479
|
+
}
|
|
3480
|
+
createWarehouse(data) {
|
|
3481
|
+
return from(this.ensureConfigured().warehouses.create(data));
|
|
3482
|
+
}
|
|
3483
|
+
updateWarehouse(uniqueId, data) {
|
|
3484
|
+
return from(this.ensureConfigured().warehouses.update(uniqueId, data));
|
|
3485
|
+
}
|
|
3486
|
+
deleteWarehouse(uniqueId) {
|
|
3487
|
+
return from(this.ensureConfigured().warehouses.delete(uniqueId));
|
|
3488
|
+
}
|
|
3489
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3490
|
+
// Entities Service
|
|
3491
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3492
|
+
listEntities(params) {
|
|
3493
|
+
return from(this.ensureConfigured().entities.list(params));
|
|
3494
|
+
}
|
|
3495
|
+
getEntity(uniqueId) {
|
|
3496
|
+
return from(this.ensureConfigured().entities.get(uniqueId));
|
|
3497
|
+
}
|
|
3498
|
+
createEntity(data) {
|
|
3499
|
+
return from(this.ensureConfigured().entities.create(data));
|
|
3500
|
+
}
|
|
3501
|
+
updateEntity(uniqueId, data) {
|
|
3502
|
+
return from(this.ensureConfigured().entities.update(uniqueId, data));
|
|
3503
|
+
}
|
|
3504
|
+
deleteEntity(uniqueId) {
|
|
3505
|
+
return from(this.ensureConfigured().entities.delete(uniqueId));
|
|
3506
|
+
}
|
|
3507
|
+
listEntityAccesses(uniqueId) {
|
|
3508
|
+
return from(this.ensureConfigured().entities.listAccesses(uniqueId));
|
|
3509
|
+
}
|
|
3510
|
+
getEntityAccess(uniqueId) {
|
|
3511
|
+
return from(this.ensureConfigured().entities.getAccess(uniqueId));
|
|
3512
|
+
}
|
|
3513
|
+
makeEntityPublic(uniqueId) {
|
|
3514
|
+
return from(this.ensureConfigured().entities.makePublic(uniqueId));
|
|
3515
|
+
}
|
|
3516
|
+
revokeEntityAccess(uniqueId, accessUniqueId) {
|
|
3517
|
+
return from(this.ensureConfigured().entities.revokeAccess(uniqueId, accessUniqueId));
|
|
3518
|
+
}
|
|
3519
|
+
requestEntityAccess(uniqueId, data) {
|
|
3520
|
+
return from(this.ensureConfigured().entities.requestAccess(uniqueId, data));
|
|
3521
|
+
}
|
|
3522
|
+
listEntityAccessRequests(uniqueId) {
|
|
3523
|
+
return from(this.ensureConfigured().entities.listAccessRequests(uniqueId));
|
|
3524
|
+
}
|
|
3525
|
+
approveEntityAccessRequest(uniqueId, requestUniqueId) {
|
|
3526
|
+
return from(this.ensureConfigured().entities.approveAccessRequest(uniqueId, requestUniqueId));
|
|
3527
|
+
}
|
|
3528
|
+
denyEntityAccessRequest(uniqueId, requestUniqueId) {
|
|
3529
|
+
return from(this.ensureConfigured().entities.denyAccessRequest(uniqueId, requestUniqueId));
|
|
3530
|
+
}
|
|
3531
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3532
|
+
// Operations Service
|
|
3533
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3534
|
+
listAssetOperations(assetUniqueId, params) {
|
|
3535
|
+
return from(this.ensureConfigured().operations.list(assetUniqueId, params));
|
|
3536
|
+
}
|
|
3537
|
+
getAssetOperation(assetUniqueId, operationUniqueId) {
|
|
3538
|
+
return from(this.ensureConfigured().operations.get(assetUniqueId, operationUniqueId));
|
|
3539
|
+
}
|
|
3540
|
+
createAssetOperation(assetUniqueId, data) {
|
|
3541
|
+
return from(this.ensureConfigured().operations.create(assetUniqueId, data));
|
|
3542
|
+
}
|
|
3543
|
+
getOperationReportSummary(params) {
|
|
3544
|
+
return from(this.ensureConfigured().operations.reportSummary(params));
|
|
3545
|
+
}
|
|
3546
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3547
|
+
// Alerts Service
|
|
3548
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3549
|
+
getAlert(uniqueId) {
|
|
3550
|
+
return from(this.ensureConfigured().alerts.get(uniqueId));
|
|
3551
|
+
}
|
|
3552
|
+
createAlert(data) {
|
|
3553
|
+
return from(this.ensureConfigured().alerts.create(data));
|
|
3554
|
+
}
|
|
3555
|
+
deleteAlert(uniqueId) {
|
|
3556
|
+
return from(this.ensureConfigured().alerts.delete(uniqueId));
|
|
3557
|
+
}
|
|
3558
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3559
|
+
// Users Service
|
|
3560
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3561
|
+
listAssetsUsers(params) {
|
|
3562
|
+
return from(this.ensureConfigured().users.list(params));
|
|
3563
|
+
}
|
|
3564
|
+
getAssetsUser(uniqueId) {
|
|
3565
|
+
return from(this.ensureConfigured().users.get(uniqueId));
|
|
3566
|
+
}
|
|
3567
|
+
registerAssetsUser(uniqueId, data) {
|
|
3568
|
+
return from(this.ensureConfigured().users.register(uniqueId, data));
|
|
3569
|
+
}
|
|
3570
|
+
updateAssetsUser(uniqueId, data) {
|
|
3571
|
+
return from(this.ensureConfigured().users.update(uniqueId, data));
|
|
3572
|
+
}
|
|
3573
|
+
listUserEntities(uniqueId) {
|
|
3574
|
+
return from(this.ensureConfigured().users.listEntities(uniqueId));
|
|
3575
|
+
}
|
|
3576
|
+
listUserAssets(uniqueId) {
|
|
3577
|
+
return from(this.ensureConfigured().users.listAssets(uniqueId));
|
|
3578
|
+
}
|
|
3579
|
+
listUserOwnership(uniqueId) {
|
|
3580
|
+
return from(this.ensureConfigured().users.listOwnership(uniqueId));
|
|
3581
|
+
}
|
|
3582
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3583
|
+
// Images Service
|
|
3584
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3585
|
+
presignAssetImage(assetUniqueId) {
|
|
3586
|
+
return from(this.ensureConfigured().images.presign(assetUniqueId));
|
|
3587
|
+
}
|
|
3588
|
+
createAssetImage(assetUniqueId, data) {
|
|
3589
|
+
return from(this.ensureConfigured().images.create(assetUniqueId, data));
|
|
3590
|
+
}
|
|
3591
|
+
deleteAssetImage(assetUniqueId, imageUniqueId) {
|
|
3592
|
+
return from(this.ensureConfigured().images.delete(assetUniqueId, imageUniqueId));
|
|
3593
|
+
}
|
|
3594
|
+
presignAssetEventImage(assetUniqueId, eventUniqueId) {
|
|
3595
|
+
return from(this.ensureConfigured().images.presignEvent(assetUniqueId, eventUniqueId));
|
|
3596
|
+
}
|
|
3597
|
+
createAssetEventImage(assetUniqueId, eventUniqueId, data) {
|
|
3598
|
+
return from(this.ensureConfigured().images.createEventImage(assetUniqueId, eventUniqueId, data));
|
|
3599
|
+
}
|
|
3600
|
+
deleteAssetEventImage(assetUniqueId, eventUniqueId, imageUniqueId) {
|
|
3601
|
+
return from(this.ensureConfigured().images.deleteEventImage(assetUniqueId, eventUniqueId, imageUniqueId));
|
|
3602
|
+
}
|
|
3603
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3181
3604
|
// Direct Block Access (for advanced usage)
|
|
3182
3605
|
// ───────────────────────────────────────────────────────────────────────────
|
|
3183
3606
|
/**
|
|
@@ -3351,6 +3774,147 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3351
3774
|
return from(this.ensureConfigured().audiences.getMembers(uniqueId));
|
|
3352
3775
|
}
|
|
3353
3776
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
3777
|
+
// Landing Templates Service
|
|
3778
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3779
|
+
listLandingTemplates(params) {
|
|
3780
|
+
return from(this.ensureConfigured().landingTemplates.list(params));
|
|
3781
|
+
}
|
|
3782
|
+
getLandingTemplate(uniqueId) {
|
|
3783
|
+
return from(this.ensureConfigured().landingTemplates.get(uniqueId));
|
|
3784
|
+
}
|
|
3785
|
+
createLandingTemplate(data) {
|
|
3786
|
+
return from(this.ensureConfigured().landingTemplates.create(data));
|
|
3787
|
+
}
|
|
3788
|
+
updateLandingTemplate(uniqueId, data) {
|
|
3789
|
+
return from(this.ensureConfigured().landingTemplates.update(uniqueId, data));
|
|
3790
|
+
}
|
|
3791
|
+
deleteLandingTemplate(uniqueId) {
|
|
3792
|
+
return from(this.ensureConfigured().landingTemplates.delete(uniqueId));
|
|
3793
|
+
}
|
|
3794
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3795
|
+
// Campaign Targets Service
|
|
3796
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3797
|
+
listCampaignTargets(params) {
|
|
3798
|
+
return from(this.ensureConfigured().targets.list(params));
|
|
3799
|
+
}
|
|
3800
|
+
getCampaignTarget(uniqueId) {
|
|
3801
|
+
return from(this.ensureConfigured().targets.get(uniqueId));
|
|
3802
|
+
}
|
|
3803
|
+
createCampaignTarget(data) {
|
|
3804
|
+
return from(this.ensureConfigured().targets.create(data));
|
|
3805
|
+
}
|
|
3806
|
+
updateCampaignTarget(uniqueId, data) {
|
|
3807
|
+
return from(this.ensureConfigured().targets.update(uniqueId, data));
|
|
3808
|
+
}
|
|
3809
|
+
deleteCampaignTarget(uniqueId) {
|
|
3810
|
+
return from(this.ensureConfigured().targets.delete(uniqueId));
|
|
3811
|
+
}
|
|
3812
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3813
|
+
// Campaign Results Service
|
|
3814
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3815
|
+
listCampaignResults(params) {
|
|
3816
|
+
return from(this.ensureConfigured().results.list(params));
|
|
3817
|
+
}
|
|
3818
|
+
getCampaignResult(uniqueId) {
|
|
3819
|
+
return from(this.ensureConfigured().results.get(uniqueId));
|
|
3820
|
+
}
|
|
3821
|
+
createCampaignResult(data) {
|
|
3822
|
+
return from(this.ensureConfigured().results.create(data));
|
|
3823
|
+
}
|
|
3824
|
+
updateCampaignResult(uniqueId, data) {
|
|
3825
|
+
return from(this.ensureConfigured().results.update(uniqueId, data));
|
|
3826
|
+
}
|
|
3827
|
+
deleteCampaignResult(uniqueId) {
|
|
3828
|
+
return from(this.ensureConfigured().results.delete(uniqueId));
|
|
3829
|
+
}
|
|
3830
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3831
|
+
// Campaign Markets Service
|
|
3832
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3833
|
+
listCampaignMarkets(params) {
|
|
3834
|
+
return from(this.ensureConfigured().markets.list(params));
|
|
3835
|
+
}
|
|
3836
|
+
getCampaignMarket(uniqueId) {
|
|
3837
|
+
return from(this.ensureConfigured().markets.get(uniqueId));
|
|
3838
|
+
}
|
|
3839
|
+
createCampaignMarket(data) {
|
|
3840
|
+
return from(this.ensureConfigured().markets.create(data));
|
|
3841
|
+
}
|
|
3842
|
+
updateCampaignMarket(uniqueId, data) {
|
|
3843
|
+
return from(this.ensureConfigured().markets.update(uniqueId, data));
|
|
3844
|
+
}
|
|
3845
|
+
deleteCampaignMarket(uniqueId) {
|
|
3846
|
+
return from(this.ensureConfigured().markets.delete(uniqueId));
|
|
3847
|
+
}
|
|
3848
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3849
|
+
// Campaign Locations Service
|
|
3850
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3851
|
+
listCampaignLocations(params) {
|
|
3852
|
+
return from(this.ensureConfigured().locations.list(params));
|
|
3853
|
+
}
|
|
3854
|
+
getCampaignLocation(uniqueId) {
|
|
3855
|
+
return from(this.ensureConfigured().locations.get(uniqueId));
|
|
3856
|
+
}
|
|
3857
|
+
createCampaignLocation(data) {
|
|
3858
|
+
return from(this.ensureConfigured().locations.create(data));
|
|
3859
|
+
}
|
|
3860
|
+
updateCampaignLocation(uniqueId, data) {
|
|
3861
|
+
return from(this.ensureConfigured().locations.update(uniqueId, data));
|
|
3862
|
+
}
|
|
3863
|
+
deleteCampaignLocation(uniqueId) {
|
|
3864
|
+
return from(this.ensureConfigured().locations.delete(uniqueId));
|
|
3865
|
+
}
|
|
3866
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3867
|
+
// Campaign Templates Service
|
|
3868
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3869
|
+
listCampaignTemplates(params) {
|
|
3870
|
+
return from(this.ensureConfigured().templates.list(params));
|
|
3871
|
+
}
|
|
3872
|
+
getCampaignTemplate(uniqueId) {
|
|
3873
|
+
return from(this.ensureConfigured().templates.get(uniqueId));
|
|
3874
|
+
}
|
|
3875
|
+
createCampaignTemplate(data) {
|
|
3876
|
+
return from(this.ensureConfigured().templates.create(data));
|
|
3877
|
+
}
|
|
3878
|
+
updateCampaignTemplate(uniqueId, data) {
|
|
3879
|
+
return from(this.ensureConfigured().templates.update(uniqueId, data));
|
|
3880
|
+
}
|
|
3881
|
+
deleteCampaignTemplate(uniqueId) {
|
|
3882
|
+
return from(this.ensureConfigured().templates.delete(uniqueId));
|
|
3883
|
+
}
|
|
3884
|
+
listTemplateDetails(params) {
|
|
3885
|
+
return from(this.ensureConfigured().templates.listDetails(params));
|
|
3886
|
+
}
|
|
3887
|
+
getTemplateDetail(uniqueId) {
|
|
3888
|
+
return from(this.ensureConfigured().templates.getDetail(uniqueId));
|
|
3889
|
+
}
|
|
3890
|
+
createTemplateDetail(data) {
|
|
3891
|
+
return from(this.ensureConfigured().templates.createDetail(data));
|
|
3892
|
+
}
|
|
3893
|
+
updateTemplateDetail(uniqueId, data) {
|
|
3894
|
+
return from(this.ensureConfigured().templates.updateDetail(uniqueId, data));
|
|
3895
|
+
}
|
|
3896
|
+
deleteTemplateDetail(uniqueId) {
|
|
3897
|
+
return from(this.ensureConfigured().templates.deleteDetail(uniqueId));
|
|
3898
|
+
}
|
|
3899
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3900
|
+
// Campaign Media Results Service
|
|
3901
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3902
|
+
listCampaignMediaResults(params) {
|
|
3903
|
+
return from(this.ensureConfigured().mediaResults.list(params));
|
|
3904
|
+
}
|
|
3905
|
+
getCampaignMediaResult(uniqueId) {
|
|
3906
|
+
return from(this.ensureConfigured().mediaResults.get(uniqueId));
|
|
3907
|
+
}
|
|
3908
|
+
createCampaignMediaResult(data) {
|
|
3909
|
+
return from(this.ensureConfigured().mediaResults.create(data));
|
|
3910
|
+
}
|
|
3911
|
+
updateCampaignMediaResult(uniqueId, data) {
|
|
3912
|
+
return from(this.ensureConfigured().mediaResults.update(uniqueId, data));
|
|
3913
|
+
}
|
|
3914
|
+
deleteCampaignMediaResult(uniqueId) {
|
|
3915
|
+
return from(this.ensureConfigured().mediaResults.delete(uniqueId));
|
|
3916
|
+
}
|
|
3917
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3354
3918
|
// Direct Block Access (for advanced usage)
|
|
3355
3919
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
3356
3920
|
/**
|
|
@@ -3685,6 +4249,108 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3685
4249
|
return from(this.ensureConfigured().badges.listByUser(userUniqueId, params));
|
|
3686
4250
|
}
|
|
3687
4251
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
4252
|
+
// Coupon Configurations Service
|
|
4253
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4254
|
+
listCouponConfigurations(params) {
|
|
4255
|
+
return from(this.ensureConfigured().couponConfigurations.list(params));
|
|
4256
|
+
}
|
|
4257
|
+
getCouponConfiguration(uniqueId) {
|
|
4258
|
+
return from(this.ensureConfigured().couponConfigurations.get(uniqueId));
|
|
4259
|
+
}
|
|
4260
|
+
createCouponConfiguration(data) {
|
|
4261
|
+
return from(this.ensureConfigured().couponConfigurations.create(data));
|
|
4262
|
+
}
|
|
4263
|
+
updateCouponConfiguration(data) {
|
|
4264
|
+
return from(this.ensureConfigured().couponConfigurations.update(data));
|
|
4265
|
+
}
|
|
4266
|
+
deleteCouponConfiguration(uniqueId) {
|
|
4267
|
+
return from(this.ensureConfigured().couponConfigurations.delete(uniqueId));
|
|
4268
|
+
}
|
|
4269
|
+
listConfigurationCoupons(uniqueId) {
|
|
4270
|
+
return from(this.ensureConfigured().couponConfigurations.listCoupons(uniqueId));
|
|
4271
|
+
}
|
|
4272
|
+
generateOneCoupon(uniqueId) {
|
|
4273
|
+
return from(this.ensureConfigured().couponConfigurations.generateOne(uniqueId));
|
|
4274
|
+
}
|
|
4275
|
+
generateBatchCoupons(uniqueId, count) {
|
|
4276
|
+
return from(this.ensureConfigured().couponConfigurations.generateBatch(uniqueId, count));
|
|
4277
|
+
}
|
|
4278
|
+
voidBatchCoupons(uniqueId, batchId) {
|
|
4279
|
+
return from(this.ensureConfigured().couponConfigurations.voidBatch(uniqueId, batchId));
|
|
4280
|
+
}
|
|
4281
|
+
loadCoupons(uniqueId, codes) {
|
|
4282
|
+
return from(this.ensureConfigured().couponConfigurations.loadCoupons(uniqueId, codes));
|
|
4283
|
+
}
|
|
4284
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4285
|
+
// Offer Codes Service
|
|
4286
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4287
|
+
getOfferCode(code) {
|
|
4288
|
+
return from(this.ensureConfigured().offerCodes.get(code));
|
|
4289
|
+
}
|
|
4290
|
+
createOfferCode(data) {
|
|
4291
|
+
return from(this.ensureConfigured().offerCodes.create(data));
|
|
4292
|
+
}
|
|
4293
|
+
sendOfferCode(data) {
|
|
4294
|
+
return from(this.ensureConfigured().offerCodes.send(data));
|
|
4295
|
+
}
|
|
4296
|
+
redeemOfferCode(data) {
|
|
4297
|
+
return from(this.ensureConfigured().offerCodes.redeem(data));
|
|
4298
|
+
}
|
|
4299
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4300
|
+
// Expiration Rules Service
|
|
4301
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4302
|
+
listExpirationRules(params) {
|
|
4303
|
+
return from(this.ensureConfigured().expirationRules.list(params));
|
|
4304
|
+
}
|
|
4305
|
+
getExpirationRule(uniqueId) {
|
|
4306
|
+
return from(this.ensureConfigured().expirationRules.get(uniqueId));
|
|
4307
|
+
}
|
|
4308
|
+
createExpirationRule(data) {
|
|
4309
|
+
return from(this.ensureConfigured().expirationRules.create(data));
|
|
4310
|
+
}
|
|
4311
|
+
updateExpirationRule(uniqueId, data) {
|
|
4312
|
+
return from(this.ensureConfigured().expirationRules.update(uniqueId, data));
|
|
4313
|
+
}
|
|
4314
|
+
deleteExpirationRule(uniqueId) {
|
|
4315
|
+
return from(this.ensureConfigured().expirationRules.delete(uniqueId));
|
|
4316
|
+
}
|
|
4317
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4318
|
+
// Rewards Customers Service
|
|
4319
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4320
|
+
listRewardsCustomers(params) {
|
|
4321
|
+
return from(this.ensureConfigured().customers.list(params));
|
|
4322
|
+
}
|
|
4323
|
+
getRewardsCustomer(uniqueId) {
|
|
4324
|
+
return from(this.ensureConfigured().customers.get(uniqueId));
|
|
4325
|
+
}
|
|
4326
|
+
getCustomerLoyaltyTier(uniqueId) {
|
|
4327
|
+
return from(this.ensureConfigured().customers.getLoyaltyTier(uniqueId));
|
|
4328
|
+
}
|
|
4329
|
+
getCustomerRewards(uniqueId) {
|
|
4330
|
+
return from(this.ensureConfigured().customers.getRewards(uniqueId));
|
|
4331
|
+
}
|
|
4332
|
+
getCustomerRewardExpirations(uniqueId) {
|
|
4333
|
+
return from(this.ensureConfigured().customers.getRewardExpirations(uniqueId));
|
|
4334
|
+
}
|
|
4335
|
+
getCustomerRewardHistory(uniqueId) {
|
|
4336
|
+
return from(this.ensureConfigured().customers.getRewardHistory(uniqueId));
|
|
4337
|
+
}
|
|
4338
|
+
getCustomerBadges(uniqueId) {
|
|
4339
|
+
return from(this.ensureConfigured().customers.getBadges(uniqueId));
|
|
4340
|
+
}
|
|
4341
|
+
getCustomerCoupons(uniqueId) {
|
|
4342
|
+
return from(this.ensureConfigured().customers.getCoupons(uniqueId));
|
|
4343
|
+
}
|
|
4344
|
+
getCustomerOfferCodes(uniqueId) {
|
|
4345
|
+
return from(this.ensureConfigured().customers.getOfferCodes(uniqueId));
|
|
4346
|
+
}
|
|
4347
|
+
grantCustomerReward(uniqueId, points, reason) {
|
|
4348
|
+
return from(this.ensureConfigured().customers.grantReward(uniqueId, points, reason));
|
|
4349
|
+
}
|
|
4350
|
+
updateCustomerExpiration(uniqueId, expirationDate) {
|
|
4351
|
+
return from(this.ensureConfigured().customers.updateExpiration(uniqueId, expirationDate));
|
|
4352
|
+
}
|
|
4353
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3688
4354
|
// Direct Block Access (for advanced usage)
|
|
3689
4355
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
3690
4356
|
/**
|
|
@@ -3846,6 +4512,126 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3846
4512
|
return from(this.ensureConfigured().subscriptions.listByUser(userUniqueId, params));
|
|
3847
4513
|
}
|
|
3848
4514
|
// ───────────────────────────────────────────────────────────────────────────
|
|
4515
|
+
// Order Taxes Service
|
|
4516
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4517
|
+
listOrderTaxes(orderUniqueId) {
|
|
4518
|
+
return from(this.ensureConfigured().orderTaxes.list(orderUniqueId));
|
|
4519
|
+
}
|
|
4520
|
+
getOrderTax(orderUniqueId, uniqueId) {
|
|
4521
|
+
return from(this.ensureConfigured().orderTaxes.get(orderUniqueId, uniqueId));
|
|
4522
|
+
}
|
|
4523
|
+
createOrderTax(orderUniqueId, data) {
|
|
4524
|
+
return from(this.ensureConfigured().orderTaxes.create(orderUniqueId, data));
|
|
4525
|
+
}
|
|
4526
|
+
updateOrderTax(orderUniqueId, uniqueId, data) {
|
|
4527
|
+
return from(this.ensureConfigured().orderTaxes.update(orderUniqueId, uniqueId, data));
|
|
4528
|
+
}
|
|
4529
|
+
deleteOrderTax(orderUniqueId, uniqueId) {
|
|
4530
|
+
return from(this.ensureConfigured().orderTaxes.delete(orderUniqueId, uniqueId));
|
|
4531
|
+
}
|
|
4532
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4533
|
+
// Subscription Models Service
|
|
4534
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4535
|
+
listSubscriptionModels(params) {
|
|
4536
|
+
return from(this.ensureConfigured().subscriptionModels.list(params));
|
|
4537
|
+
}
|
|
4538
|
+
getSubscriptionModel(uniqueId) {
|
|
4539
|
+
return from(this.ensureConfigured().subscriptionModels.get(uniqueId));
|
|
4540
|
+
}
|
|
4541
|
+
createSubscriptionModel(data) {
|
|
4542
|
+
return from(this.ensureConfigured().subscriptionModels.create(data));
|
|
4543
|
+
}
|
|
4544
|
+
updateSubscriptionModel(uniqueId, data) {
|
|
4545
|
+
return from(this.ensureConfigured().subscriptionModels.update(uniqueId, data));
|
|
4546
|
+
}
|
|
4547
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4548
|
+
// Entities Service
|
|
4549
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4550
|
+
listSalesEntities(params) {
|
|
4551
|
+
return from(this.ensureConfigured().entities.list(params));
|
|
4552
|
+
}
|
|
4553
|
+
getSalesEntity(uniqueId) {
|
|
4554
|
+
return from(this.ensureConfigured().entities.get(uniqueId));
|
|
4555
|
+
}
|
|
4556
|
+
registerSalesEntity(uniqueId, data) {
|
|
4557
|
+
return from(this.ensureConfigured().entities.register(uniqueId, data));
|
|
4558
|
+
}
|
|
4559
|
+
updateSalesEntity(uniqueId, data) {
|
|
4560
|
+
return from(this.ensureConfigured().entities.update(uniqueId, data));
|
|
4561
|
+
}
|
|
4562
|
+
createEntitySubscription(uniqueId, data) {
|
|
4563
|
+
return from(this.ensureConfigured().entities.createSubscription(uniqueId, data));
|
|
4564
|
+
}
|
|
4565
|
+
updateEntitySubscription(uniqueId, subscriptionUniqueId, data) {
|
|
4566
|
+
return from(this.ensureConfigured().entities.updateSubscription(uniqueId, subscriptionUniqueId, data));
|
|
4567
|
+
}
|
|
4568
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4569
|
+
// Users Service
|
|
4570
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4571
|
+
listSalesUsers(params) {
|
|
4572
|
+
return from(this.ensureConfigured().users.list(params));
|
|
4573
|
+
}
|
|
4574
|
+
getSalesUser(uniqueId) {
|
|
4575
|
+
return from(this.ensureConfigured().users.get(uniqueId));
|
|
4576
|
+
}
|
|
4577
|
+
registerSalesUser(uniqueId, data) {
|
|
4578
|
+
return from(this.ensureConfigured().users.register(uniqueId, data));
|
|
4579
|
+
}
|
|
4580
|
+
updateSalesUser(uniqueId, data) {
|
|
4581
|
+
return from(this.ensureConfigured().users.update(uniqueId, data));
|
|
4582
|
+
}
|
|
4583
|
+
createSalesUserSubscription(uniqueId, data) {
|
|
4584
|
+
return from(this.ensureConfigured().users.createSubscription(uniqueId, data));
|
|
4585
|
+
}
|
|
4586
|
+
updateSalesUserSubscription(uniqueId, subscriptionUniqueId, data) {
|
|
4587
|
+
return from(this.ensureConfigured().users.updateSubscription(uniqueId, subscriptionUniqueId, data));
|
|
4588
|
+
}
|
|
4589
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4590
|
+
// Customers Service
|
|
4591
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4592
|
+
listSalesCustomers(params) {
|
|
4593
|
+
return from(this.ensureConfigured().customers.list(params));
|
|
4594
|
+
}
|
|
4595
|
+
getSalesCustomer(uniqueId) {
|
|
4596
|
+
return from(this.ensureConfigured().customers.get(uniqueId));
|
|
4597
|
+
}
|
|
4598
|
+
createSalesCustomer(data) {
|
|
4599
|
+
return from(this.ensureConfigured().customers.create(data));
|
|
4600
|
+
}
|
|
4601
|
+
updateSalesCustomer(uniqueId, data) {
|
|
4602
|
+
return from(this.ensureConfigured().customers.update(uniqueId, data));
|
|
4603
|
+
}
|
|
4604
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4605
|
+
// Flexible Orders Service
|
|
4606
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4607
|
+
listFlexibleOrders(params) {
|
|
4608
|
+
return from(this.ensureConfigured().flexibleOrders.list(params));
|
|
4609
|
+
}
|
|
4610
|
+
getFlexibleOrder(uniqueId) {
|
|
4611
|
+
return from(this.ensureConfigured().flexibleOrders.get(uniqueId));
|
|
4612
|
+
}
|
|
4613
|
+
createFlexibleOrder(data) {
|
|
4614
|
+
return from(this.ensureConfigured().flexibleOrders.create(data));
|
|
4615
|
+
}
|
|
4616
|
+
updateFlexibleOrder(uniqueId, data) {
|
|
4617
|
+
return from(this.ensureConfigured().flexibleOrders.update(uniqueId, data));
|
|
4618
|
+
}
|
|
4619
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4620
|
+
// Vendor Payments Service
|
|
4621
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
4622
|
+
listVendorPayments(params) {
|
|
4623
|
+
return from(this.ensureConfigured().vendorPayments.list(params));
|
|
4624
|
+
}
|
|
4625
|
+
getVendorPayment(uniqueId) {
|
|
4626
|
+
return from(this.ensureConfigured().vendorPayments.get(uniqueId));
|
|
4627
|
+
}
|
|
4628
|
+
createVendorPayment(data) {
|
|
4629
|
+
return from(this.ensureConfigured().vendorPayments.create(data));
|
|
4630
|
+
}
|
|
4631
|
+
updateVendorPayment(uniqueId, data) {
|
|
4632
|
+
return from(this.ensureConfigured().vendorPayments.update(uniqueId, data));
|
|
4633
|
+
}
|
|
4634
|
+
// ───────────────────────────────────────────────────────────────────────────
|
|
3849
4635
|
// Direct Block Access (for advanced usage)
|
|
3850
4636
|
// ───────────────────────────────────────────────────────────────────────────
|
|
3851
4637
|
/**
|
|
@@ -3943,6 +4729,24 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3943
4729
|
getWalletBalance(uniqueId) {
|
|
3944
4730
|
return from(this.ensureConfigured().wallets.getBalance(uniqueId));
|
|
3945
4731
|
}
|
|
4732
|
+
getUserWallet(userUniqueId, walletCode) {
|
|
4733
|
+
return from(this.ensureConfigured().wallets.getUserWallet(userUniqueId, walletCode));
|
|
4734
|
+
}
|
|
4735
|
+
validateWallet(data) {
|
|
4736
|
+
return from(this.ensureConfigured().wallets.validate(data));
|
|
4737
|
+
}
|
|
4738
|
+
transferWallet(userUniqueId, walletCode, data) {
|
|
4739
|
+
return from(this.ensureConfigured().wallets.transfer(userUniqueId, walletCode, data));
|
|
4740
|
+
}
|
|
4741
|
+
getWalletContent(userUniqueId, walletCode) {
|
|
4742
|
+
return from(this.ensureConfigured().wallets.getContent(userUniqueId, walletCode));
|
|
4743
|
+
}
|
|
4744
|
+
storeWalletContent(userUniqueId, walletCode, data) {
|
|
4745
|
+
return from(this.ensureConfigured().wallets.storeContent(userUniqueId, walletCode, data));
|
|
4746
|
+
}
|
|
4747
|
+
listWalletTransactions(userUniqueId, walletCode) {
|
|
4748
|
+
return from(this.ensureConfigured().wallets.listTransactions(userUniqueId, walletCode));
|
|
4749
|
+
}
|
|
3946
4750
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
3947
4751
|
// Transactions Service
|
|
3948
4752
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
@@ -3980,6 +4784,15 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
3980
4784
|
return from(this.ensureConfigured().authorizationCodes.invalidate(uniqueId));
|
|
3981
4785
|
}
|
|
3982
4786
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
4787
|
+
// Webhooks Service
|
|
4788
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4789
|
+
/**
|
|
4790
|
+
* Process an incoming transaction webhook from an external payment provider.
|
|
4791
|
+
* This endpoint is used to record transactions initiated by external systems.
|
|
4792
|
+
*/ processTransactionWebhook(companyUrlId, walletCode, data) {
|
|
4793
|
+
return from(this.ensureConfigured().webhooks.processTransaction(companyUrlId, walletCode, data));
|
|
4794
|
+
}
|
|
4795
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
3983
4796
|
// Direct Block Access (for advanced usage)
|
|
3984
4797
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
3985
4798
|
/**
|
|
@@ -4521,6 +5334,246 @@ typeof SuppressedError === "function" ? SuppressedError : function _SuppressedEr
|
|
|
4521
5334
|
return from(this.ensureConfigured().submissions.listByUser(userUniqueId, params));
|
|
4522
5335
|
}
|
|
4523
5336
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
5337
|
+
// Subjects Service
|
|
5338
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5339
|
+
listSubjects(params) {
|
|
5340
|
+
return from(this.ensureConfigured().subjects.list(params));
|
|
5341
|
+
}
|
|
5342
|
+
getSubject(uniqueId) {
|
|
5343
|
+
return from(this.ensureConfigured().subjects.get(uniqueId));
|
|
5344
|
+
}
|
|
5345
|
+
createSubject(data) {
|
|
5346
|
+
return from(this.ensureConfigured().subjects.create(data));
|
|
5347
|
+
}
|
|
5348
|
+
updateSubject(uniqueId, data) {
|
|
5349
|
+
return from(this.ensureConfigured().subjects.update(uniqueId, data));
|
|
5350
|
+
}
|
|
5351
|
+
getSubjectResources(uniqueId) {
|
|
5352
|
+
return from(this.ensureConfigured().subjects.getResources(uniqueId));
|
|
5353
|
+
}
|
|
5354
|
+
getSubjectTeacherResources(uniqueId, teacherUniqueId) {
|
|
5355
|
+
return from(this.ensureConfigured().subjects.getTeacherResources(uniqueId, teacherUniqueId));
|
|
5356
|
+
}
|
|
5357
|
+
getSubjectTests(uniqueId) {
|
|
5358
|
+
return from(this.ensureConfigured().subjects.getTests(uniqueId));
|
|
5359
|
+
}
|
|
5360
|
+
addSubjectLesson(uniqueId, lessonData) {
|
|
5361
|
+
return from(this.ensureConfigured().subjects.addLesson(uniqueId, lessonData));
|
|
5362
|
+
}
|
|
5363
|
+
addSubjectResource(uniqueId, resourceData) {
|
|
5364
|
+
return from(this.ensureConfigured().subjects.addResource(uniqueId, resourceData));
|
|
5365
|
+
}
|
|
5366
|
+
updateSubjectResource(uniqueId, resourceUniqueId, resourceData) {
|
|
5367
|
+
return from(this.ensureConfigured().subjects.updateResource(uniqueId, resourceUniqueId, resourceData));
|
|
5368
|
+
}
|
|
5369
|
+
deleteSubjectResource(uniqueId, resourceUniqueId) {
|
|
5370
|
+
return from(this.ensureConfigured().subjects.deleteResource(uniqueId, resourceUniqueId));
|
|
5371
|
+
}
|
|
5372
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5373
|
+
// Teachers Service
|
|
5374
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5375
|
+
listTeachers(params) {
|
|
5376
|
+
return from(this.ensureConfigured().teachers.list(params));
|
|
5377
|
+
}
|
|
5378
|
+
listArchivedTeachers(params) {
|
|
5379
|
+
return from(this.ensureConfigured().teachers.listArchived(params));
|
|
5380
|
+
}
|
|
5381
|
+
getTeacher(uniqueId) {
|
|
5382
|
+
return from(this.ensureConfigured().teachers.get(uniqueId));
|
|
5383
|
+
}
|
|
5384
|
+
getTeacherCourses(uniqueId) {
|
|
5385
|
+
return from(this.ensureConfigured().teachers.getCourses(uniqueId));
|
|
5386
|
+
}
|
|
5387
|
+
getTeacherGroups(uniqueId) {
|
|
5388
|
+
return from(this.ensureConfigured().teachers.getGroups(uniqueId));
|
|
5389
|
+
}
|
|
5390
|
+
getTeacherAvailability(uniqueId) {
|
|
5391
|
+
return from(this.ensureConfigured().teachers.getAvailability(uniqueId));
|
|
5392
|
+
}
|
|
5393
|
+
addTeacherAvailability(uniqueId, data) {
|
|
5394
|
+
return from(this.ensureConfigured().teachers.addAvailability(uniqueId, data));
|
|
5395
|
+
}
|
|
5396
|
+
updateTeacherAvailability(uniqueId, availabilityUniqueId, data) {
|
|
5397
|
+
return from(this.ensureConfigured().teachers.updateAvailability(uniqueId, availabilityUniqueId, data));
|
|
5398
|
+
}
|
|
5399
|
+
deleteTeacherAvailability(uniqueId, availabilityUniqueId) {
|
|
5400
|
+
return from(this.ensureConfigured().teachers.deleteAvailability(uniqueId, availabilityUniqueId));
|
|
5401
|
+
}
|
|
5402
|
+
deleteAllTeacherAvailability(uniqueId) {
|
|
5403
|
+
return from(this.ensureConfigured().teachers.deleteAllAvailability(uniqueId));
|
|
5404
|
+
}
|
|
5405
|
+
getTeacherContentTree(uniqueId, courseGroupUniqueId) {
|
|
5406
|
+
return from(this.ensureConfigured().teachers.getContentTree(uniqueId, courseGroupUniqueId));
|
|
5407
|
+
}
|
|
5408
|
+
getTeacherStudentContentTree(uniqueId, userUniqueId, courseGroupUniqueId) {
|
|
5409
|
+
return from(this.ensureConfigured().teachers.getStudentContentTree(uniqueId, userUniqueId, courseGroupUniqueId));
|
|
5410
|
+
}
|
|
5411
|
+
promoteStudent(teacherUniqueId, userUniqueId) {
|
|
5412
|
+
return from(this.ensureConfigured().teachers.promoteStudent(teacherUniqueId, userUniqueId));
|
|
5413
|
+
}
|
|
5414
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5415
|
+
// Students Service
|
|
5416
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5417
|
+
listStudents(params) {
|
|
5418
|
+
return from(this.ensureConfigured().students.list(params));
|
|
5419
|
+
}
|
|
5420
|
+
listArchivedStudents(params) {
|
|
5421
|
+
return from(this.ensureConfigured().students.listArchived(params));
|
|
5422
|
+
}
|
|
5423
|
+
getStudent(uniqueId) {
|
|
5424
|
+
return from(this.ensureConfigured().students.get(uniqueId));
|
|
5425
|
+
}
|
|
5426
|
+
registerStudent(uniqueId, data) {
|
|
5427
|
+
return from(this.ensureConfigured().students.register(uniqueId, data));
|
|
5428
|
+
}
|
|
5429
|
+
updateStudent(uniqueId, data) {
|
|
5430
|
+
return from(this.ensureConfigured().students.update(uniqueId, data));
|
|
5431
|
+
}
|
|
5432
|
+
archiveStudent(uniqueId) {
|
|
5433
|
+
return from(this.ensureConfigured().students.archive(uniqueId));
|
|
5434
|
+
}
|
|
5435
|
+
restoreStudent(uniqueId) {
|
|
5436
|
+
return from(this.ensureConfigured().students.restore(uniqueId));
|
|
5437
|
+
}
|
|
5438
|
+
getStudentCourses(uniqueId) {
|
|
5439
|
+
return from(this.ensureConfigured().students.getCourses(uniqueId));
|
|
5440
|
+
}
|
|
5441
|
+
getStudentAvailableCourses(uniqueId) {
|
|
5442
|
+
return from(this.ensureConfigured().students.getAvailableCourses(uniqueId));
|
|
5443
|
+
}
|
|
5444
|
+
getStudentGroups(uniqueId) {
|
|
5445
|
+
return from(this.ensureConfigured().students.getGroups(uniqueId));
|
|
5446
|
+
}
|
|
5447
|
+
getStudentContentTree(uniqueId, courseGroupUniqueId) {
|
|
5448
|
+
return from(this.ensureConfigured().students.getContentTree(uniqueId, courseGroupUniqueId));
|
|
5449
|
+
}
|
|
5450
|
+
getStudentAvailability(uniqueId) {
|
|
5451
|
+
return from(this.ensureConfigured().students.getAvailability(uniqueId));
|
|
5452
|
+
}
|
|
5453
|
+
addStudentAvailability(uniqueId, data) {
|
|
5454
|
+
return from(this.ensureConfigured().students.addAvailability(uniqueId, data));
|
|
5455
|
+
}
|
|
5456
|
+
updateStudentAvailability(uniqueId, availabilityUniqueId, data) {
|
|
5457
|
+
return from(this.ensureConfigured().students.updateAvailability(uniqueId, availabilityUniqueId, data));
|
|
5458
|
+
}
|
|
5459
|
+
updateStudentAvailabilitySlots(uniqueId, slots) {
|
|
5460
|
+
return from(this.ensureConfigured().students.updateAvailabilitySlots(uniqueId, slots));
|
|
5461
|
+
}
|
|
5462
|
+
deleteStudentAvailability(uniqueId, availabilityUniqueId) {
|
|
5463
|
+
return from(this.ensureConfigured().students.deleteAvailability(uniqueId, availabilityUniqueId));
|
|
5464
|
+
}
|
|
5465
|
+
deleteAllStudentAvailability(uniqueId) {
|
|
5466
|
+
return from(this.ensureConfigured().students.deleteAllAvailability(uniqueId));
|
|
5467
|
+
}
|
|
5468
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5469
|
+
// Course Groups Service
|
|
5470
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5471
|
+
getCourseGroup(uniqueId) {
|
|
5472
|
+
return from(this.ensureConfigured().courseGroups.get(uniqueId));
|
|
5473
|
+
}
|
|
5474
|
+
createCourseGroup(data) {
|
|
5475
|
+
return from(this.ensureConfigured().courseGroups.create(data));
|
|
5476
|
+
}
|
|
5477
|
+
addStudentToCourseGroup(uniqueId, studentUniqueId) {
|
|
5478
|
+
return from(this.ensureConfigured().courseGroups.addStudent(uniqueId, studentUniqueId));
|
|
5479
|
+
}
|
|
5480
|
+
addTeacherToCourseGroup(uniqueId, teacherUniqueId) {
|
|
5481
|
+
return from(this.ensureConfigured().courseGroups.addTeacher(uniqueId, teacherUniqueId));
|
|
5482
|
+
}
|
|
5483
|
+
getCourseGroupTests(uniqueId) {
|
|
5484
|
+
return from(this.ensureConfigured().courseGroups.getTests(uniqueId));
|
|
5485
|
+
}
|
|
5486
|
+
getCourseGroupTestResponses(uniqueId, testUniqueId) {
|
|
5487
|
+
return from(this.ensureConfigured().courseGroups.getTestResponses(uniqueId, testUniqueId));
|
|
5488
|
+
}
|
|
5489
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5490
|
+
// Coaching Sessions Service
|
|
5491
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5492
|
+
listCoachingSessions(params) {
|
|
5493
|
+
return from(this.ensureConfigured().coachingSessions.list(params));
|
|
5494
|
+
}
|
|
5495
|
+
createCoachingSession(data) {
|
|
5496
|
+
return from(this.ensureConfigured().coachingSessions.create(data));
|
|
5497
|
+
}
|
|
5498
|
+
updateCoachingSession(uniqueId, data) {
|
|
5499
|
+
return from(this.ensureConfigured().coachingSessions.update(uniqueId, data));
|
|
5500
|
+
}
|
|
5501
|
+
deleteCoachingSession(uniqueId) {
|
|
5502
|
+
return from(this.ensureConfigured().coachingSessions.delete(uniqueId));
|
|
5503
|
+
}
|
|
5504
|
+
getCoachingSessionsByStudent(studentUniqueId) {
|
|
5505
|
+
return from(this.ensureConfigured().coachingSessions.getByStudent(studentUniqueId));
|
|
5506
|
+
}
|
|
5507
|
+
getCoachingSessionsByTeacher(teacherUniqueId) {
|
|
5508
|
+
return from(this.ensureConfigured().coachingSessions.getByTeacher(teacherUniqueId));
|
|
5509
|
+
}
|
|
5510
|
+
studentConfirmCoachingSession(uniqueId) {
|
|
5511
|
+
return from(this.ensureConfigured().coachingSessions.studentConfirm(uniqueId));
|
|
5512
|
+
}
|
|
5513
|
+
studentCheckInCoachingSession(uniqueId) {
|
|
5514
|
+
return from(this.ensureConfigured().coachingSessions.studentCheckIn(uniqueId));
|
|
5515
|
+
}
|
|
5516
|
+
studentCheckOutCoachingSession(uniqueId) {
|
|
5517
|
+
return from(this.ensureConfigured().coachingSessions.studentCheckOut(uniqueId));
|
|
5518
|
+
}
|
|
5519
|
+
addStudentNotesToCoachingSession(uniqueId, notes) {
|
|
5520
|
+
return from(this.ensureConfigured().coachingSessions.studentNotes(uniqueId, notes));
|
|
5521
|
+
}
|
|
5522
|
+
teacherConfirmCoachingSession(uniqueId) {
|
|
5523
|
+
return from(this.ensureConfigured().coachingSessions.teacherConfirm(uniqueId));
|
|
5524
|
+
}
|
|
5525
|
+
teacherCheckInCoachingSession(uniqueId) {
|
|
5526
|
+
return from(this.ensureConfigured().coachingSessions.teacherCheckIn(uniqueId));
|
|
5527
|
+
}
|
|
5528
|
+
teacherCheckOutCoachingSession(uniqueId) {
|
|
5529
|
+
return from(this.ensureConfigured().coachingSessions.teacherCheckOut(uniqueId));
|
|
5530
|
+
}
|
|
5531
|
+
addAdminNotesToCoachingSession(uniqueId, notes) {
|
|
5532
|
+
return from(this.ensureConfigured().coachingSessions.adminNotes(uniqueId, notes));
|
|
5533
|
+
}
|
|
5534
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5535
|
+
// Content Tests Service
|
|
5536
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
5537
|
+
listContentTests(params) {
|
|
5538
|
+
return from(this.ensureConfigured().tests.list(params));
|
|
5539
|
+
}
|
|
5540
|
+
getContentTest(uniqueId) {
|
|
5541
|
+
return from(this.ensureConfigured().tests.get(uniqueId));
|
|
5542
|
+
}
|
|
5543
|
+
createContentTest(data) {
|
|
5544
|
+
return from(this.ensureConfigured().tests.create(data));
|
|
5545
|
+
}
|
|
5546
|
+
updateContentTest(uniqueId, data) {
|
|
5547
|
+
return from(this.ensureConfigured().tests.update(uniqueId, data));
|
|
5548
|
+
}
|
|
5549
|
+
getContentTestResults(uniqueId) {
|
|
5550
|
+
return from(this.ensureConfigured().tests.getResults(uniqueId));
|
|
5551
|
+
}
|
|
5552
|
+
getContentTestSolution(uniqueId) {
|
|
5553
|
+
return from(this.ensureConfigured().tests.getSolution(uniqueId));
|
|
5554
|
+
}
|
|
5555
|
+
createTestQuestion(uniqueId, data) {
|
|
5556
|
+
return from(this.ensureConfigured().tests.createQuestion(uniqueId, data));
|
|
5557
|
+
}
|
|
5558
|
+
updateTestQuestion(uniqueId, questionUniqueId, data) {
|
|
5559
|
+
return from(this.ensureConfigured().tests.updateQuestion(uniqueId, questionUniqueId, data));
|
|
5560
|
+
}
|
|
5561
|
+
getTestQuestion(uniqueId, questionId) {
|
|
5562
|
+
return from(this.ensureConfigured().tests.getQuestion(uniqueId, questionId));
|
|
5563
|
+
}
|
|
5564
|
+
listTestOptions() {
|
|
5565
|
+
return from(this.ensureConfigured().tests.listOptions());
|
|
5566
|
+
}
|
|
5567
|
+
createTestOption(data) {
|
|
5568
|
+
return from(this.ensureConfigured().tests.createOption(data));
|
|
5569
|
+
}
|
|
5570
|
+
updateTestOption(uniqueId, optionUniqueId, data) {
|
|
5571
|
+
return from(this.ensureConfigured().tests.updateOption(uniqueId, optionUniqueId, data));
|
|
5572
|
+
}
|
|
5573
|
+
addOptionToQuestion(uniqueId, questionId, optionId) {
|
|
5574
|
+
return from(this.ensureConfigured().tests.addOptionToQuestion(uniqueId, questionId, optionId));
|
|
5575
|
+
}
|
|
5576
|
+
// ─────────────────────────────────────────────────────────────────────────────
|
|
4524
5577
|
// Direct Block Access (for advanced usage)
|
|
4525
5578
|
// ─────────────────────────────────────────────────────────────────────────────
|
|
4526
5579
|
/**
|