@infisale-client/api-client 1.2.0 → 1.2.3

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/api/api.d.ts CHANGED
@@ -68,6 +68,7 @@ export declare const ComponentContentTypeEnum: {
68
68
  readonly CAROUSEL_ITEM: "carousel-item";
69
69
  readonly GRID_ITEM: "grid-item";
70
70
  readonly ANNOUNCEMENT_ITEM: "announcement-item";
71
+ readonly ACCORDION_ITEM: "accordion-item";
71
72
  };
72
73
  export type ComponentContentTypeEnum = typeof ComponentContentTypeEnum[keyof typeof ComponentContentTypeEnum];
73
74
  /**
@@ -4739,6 +4740,18 @@ export interface IPageGetAllQueryParams {
4739
4740
  * @memberof IPageGetAllQueryParams
4740
4741
  */
4741
4742
  'domain'?: string;
4743
+ /**
4744
+ *
4745
+ * @type {string}
4746
+ * @memberof IPageGetAllQueryParams
4747
+ */
4748
+ 'search'?: string;
4749
+ /**
4750
+ *
4751
+ * @type {string}
4752
+ * @memberof IPageGetAllQueryParams
4753
+ */
4754
+ 'template'?: string;
4742
4755
  /**
4743
4756
  *
4744
4757
  * @type {Array<PageTypeEnum>}
@@ -6350,6 +6363,12 @@ export interface ITemplateResponseComponentsInnerContentsInnerConfig {
6350
6363
  * @interface ITemplateResponseComponentsInnerIdentity
6351
6364
  */
6352
6365
  export interface ITemplateResponseComponentsInnerIdentity {
6366
+ /**
6367
+ *
6368
+ * @type {IProductResponse}
6369
+ * @memberof ITemplateResponseComponentsInnerIdentity
6370
+ */
6371
+ 'singleProduct'?: IProductResponse;
6353
6372
  /**
6354
6373
  *
6355
6374
  * @type {Array<ITemplateResponseComponentsInnerIdentityButtonsInner>}
@@ -9380,10 +9399,11 @@ export declare const PageApiAxiosParamCreator: (configuration?: Configuration) =
9380
9399
  * @param {string} type
9381
9400
  * @param {string} [companyId]
9382
9401
  * @param {string} [domain]
9402
+ * @param {string} [template]
9383
9403
  * @param {*} [options] Override http request option.
9384
9404
  * @throws {RequiredError}
9385
9405
  */
9386
- getPageByType: (type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9406
+ getPageByType: (type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
9387
9407
  /**
9388
9408
  *
9389
9409
  * @param {number} [page]
@@ -9422,10 +9442,11 @@ export declare const PageApiFp: (configuration?: Configuration) => {
9422
9442
  * @param {string} type
9423
9443
  * @param {string} [companyId]
9424
9444
  * @param {string} [domain]
9445
+ * @param {string} [template]
9425
9446
  * @param {*} [options] Override http request option.
9426
9447
  * @throws {RequiredError}
9427
9448
  */
9428
- getPageByType(type: string, companyId?: string, domain?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
9449
+ getPageByType(type: string, companyId?: string, domain?: string, template?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<IPageResponse>>;
9429
9450
  /**
9430
9451
  *
9431
9452
  * @param {number} [page]
@@ -9521,6 +9542,12 @@ export interface PageApiGetPageByTypeRequest {
9521
9542
  * @memberof PageApiGetPageByType
9522
9543
  */
9523
9544
  readonly domain?: string;
9545
+ /**
9546
+ *
9547
+ * @type {string}
9548
+ * @memberof PageApiGetPageByType
9549
+ */
9550
+ readonly template?: string;
9524
9551
  }
9525
9552
  /**
9526
9553
  * Request parameters for getPages operation in PageApi.
package/dist/api/api.js CHANGED
@@ -75,7 +75,8 @@ exports.ComponentContentTypeEnum = {
75
75
  INVENTORY_STATUS: 'inventory-status',
76
76
  CAROUSEL_ITEM: 'carousel-item',
77
77
  GRID_ITEM: 'grid-item',
78
- ANNOUNCEMENT_ITEM: 'announcement-item'
78
+ ANNOUNCEMENT_ITEM: 'announcement-item',
79
+ ACCORDION_ITEM: 'accordion-item'
79
80
  };
80
81
  /**
81
82
  *
@@ -1801,10 +1802,11 @@ const PageApiAxiosParamCreator = function (configuration) {
1801
1802
  * @param {string} type
1802
1803
  * @param {string} [companyId]
1803
1804
  * @param {string} [domain]
1805
+ * @param {string} [template]
1804
1806
  * @param {*} [options] Override http request option.
1805
1807
  * @throws {RequiredError}
1806
1808
  */
1807
- getPageByType: async (type, companyId, domain, options = {}) => {
1809
+ getPageByType: async (type, companyId, domain, template, options = {}) => {
1808
1810
  // verify required parameter 'type' is not null or undefined
1809
1811
  (0, common_1.assertParamExists)('getPageByType', 'type', type);
1810
1812
  const localVarPath = `/api/pages/type/{type}`
@@ -1824,6 +1826,9 @@ const PageApiAxiosParamCreator = function (configuration) {
1824
1826
  if (domain !== undefined) {
1825
1827
  localVarQueryParameter['domain'] = domain;
1826
1828
  }
1829
+ if (template !== undefined) {
1830
+ localVarQueryParameter['template'] = template;
1831
+ }
1827
1832
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1828
1833
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1829
1834
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1937,11 +1942,12 @@ const PageApiFp = function (configuration) {
1937
1942
  * @param {string} type
1938
1943
  * @param {string} [companyId]
1939
1944
  * @param {string} [domain]
1945
+ * @param {string} [template]
1940
1946
  * @param {*} [options] Override http request option.
1941
1947
  * @throws {RequiredError}
1942
1948
  */
1943
- async getPageByType(type, companyId, domain, options) {
1944
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
1949
+ async getPageByType(type, companyId, domain, template, options) {
1950
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
1945
1951
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1946
1952
  const localVarOperationServerBasePath = base_1.operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
1947
1953
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1995,7 +2001,7 @@ const PageApiFactory = function (configuration, basePath, axios) {
1995
2001
  * @throws {RequiredError}
1996
2002
  */
1997
2003
  getPageByType(requestParameters, options) {
1998
- return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
2004
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
1999
2005
  },
2000
2006
  /**
2001
2007
  *
@@ -2034,7 +2040,7 @@ class PageApi extends base_1.BaseAPI {
2034
2040
  * @memberof PageApi
2035
2041
  */
2036
2042
  getPageByType(requestParameters, options) {
2037
- return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2043
+ return (0, exports.PageApiFp)(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
2038
2044
  }
2039
2045
  /**
2040
2046
  *
package/dist/api/api.mjs CHANGED
@@ -65,7 +65,8 @@ export const ComponentContentTypeEnum = {
65
65
  INVENTORY_STATUS: 'inventory-status',
66
66
  CAROUSEL_ITEM: 'carousel-item',
67
67
  GRID_ITEM: 'grid-item',
68
- ANNOUNCEMENT_ITEM: 'announcement-item'
68
+ ANNOUNCEMENT_ITEM: 'announcement-item',
69
+ ACCORDION_ITEM: 'accordion-item'
69
70
  };
70
71
  /**
71
72
  *
@@ -1771,10 +1772,11 @@ export const PageApiAxiosParamCreator = function (configuration) {
1771
1772
  * @param {string} type
1772
1773
  * @param {string} [companyId]
1773
1774
  * @param {string} [domain]
1775
+ * @param {string} [template]
1774
1776
  * @param {*} [options] Override http request option.
1775
1777
  * @throws {RequiredError}
1776
1778
  */
1777
- getPageByType: async (type, companyId, domain, options = {}) => {
1779
+ getPageByType: async (type, companyId, domain, template, options = {}) => {
1778
1780
  // verify required parameter 'type' is not null or undefined
1779
1781
  assertParamExists('getPageByType', 'type', type);
1780
1782
  const localVarPath = `/api/pages/type/{type}`
@@ -1794,6 +1796,9 @@ export const PageApiAxiosParamCreator = function (configuration) {
1794
1796
  if (domain !== undefined) {
1795
1797
  localVarQueryParameter['domain'] = domain;
1796
1798
  }
1799
+ if (template !== undefined) {
1800
+ localVarQueryParameter['template'] = template;
1801
+ }
1797
1802
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1798
1803
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1799
1804
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
@@ -1906,11 +1911,12 @@ export const PageApiFp = function (configuration) {
1906
1911
  * @param {string} type
1907
1912
  * @param {string} [companyId]
1908
1913
  * @param {string} [domain]
1914
+ * @param {string} [template]
1909
1915
  * @param {*} [options] Override http request option.
1910
1916
  * @throws {RequiredError}
1911
1917
  */
1912
- async getPageByType(type, companyId, domain, options) {
1913
- const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, options);
1918
+ async getPageByType(type, companyId, domain, template, options) {
1919
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getPageByType(type, companyId, domain, template, options);
1914
1920
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1915
1921
  const localVarOperationServerBasePath = operationServerMap['PageApi.getPageByType']?.[localVarOperationServerIndex]?.url;
1916
1922
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1963,7 +1969,7 @@ export const PageApiFactory = function (configuration, basePath, axios) {
1963
1969
  * @throws {RequiredError}
1964
1970
  */
1965
1971
  getPageByType(requestParameters, options) {
1966
- return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(axios, basePath));
1972
+ return localVarFp.getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(axios, basePath));
1967
1973
  },
1968
1974
  /**
1969
1975
  *
@@ -2001,7 +2007,7 @@ export class PageApi extends BaseAPI {
2001
2007
  * @memberof PageApi
2002
2008
  */
2003
2009
  getPageByType(requestParameters, options) {
2004
- return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, options).then((request) => request(this.axios, this.basePath));
2010
+ return PageApiFp(this.configuration).getPageByType(requestParameters.type, requestParameters.companyId, requestParameters.domain, requestParameters.template, options).then((request) => request(this.axios, this.basePath));
2005
2011
  }
2006
2012
  /**
2007
2013
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@infisale-client/api-client",
3
- "version": "1.2.0",
3
+ "version": "1.2.3",
4
4
  "description": "api-client-sdk",
5
5
  "author": "Muhammet KÖKLÜ <105980019+byhipernova@users.noreply.github.com>",
6
6
  "homepage": "https://github.com/infisale/infisale-client#readme",
@@ -37,5 +37,5 @@
37
37
  "bugs": {
38
38
  "url": "https://github.com/infisale/infisale-client/issues"
39
39
  },
40
- "gitHead": "7f3c350c684764a92afbbc687368fd94fa465e87"
40
+ "gitHead": "fe377e6490470e925a4b81eabea1b2a7a34a181f"
41
41
  }