@crestal/nation-sdk 0.6.26 → 0.6.28

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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @crestal/nation-sdk@0.6.26
1
+ ## @crestal/nation-sdk@0.6.28
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @crestal/nation-sdk@0.6.26 --save
39
+ npm install @crestal/nation-sdk@0.6.28 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
package/api.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.6.26
7
+ * The version of the OpenAPI document: 0.6.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1964,6 +1964,54 @@ export interface CreditAccount {
1964
1964
  * @memberof CreditAccount
1965
1965
  */
1966
1966
  'last_event_id'?: string | null;
1967
+ /**
1968
+ * Total income from all credit transactions
1969
+ * @type {string}
1970
+ * @memberof CreditAccount
1971
+ */
1972
+ 'total_income'?: string;
1973
+ /**
1974
+ * Total income from free credit transactions
1975
+ * @type {string}
1976
+ * @memberof CreditAccount
1977
+ */
1978
+ 'total_free_income'?: string;
1979
+ /**
1980
+ * Total income from reward credit transactions
1981
+ * @type {string}
1982
+ * @memberof CreditAccount
1983
+ */
1984
+ 'total_reward_income'?: string;
1985
+ /**
1986
+ * Total income from permanent credit transactions
1987
+ * @type {string}
1988
+ * @memberof CreditAccount
1989
+ */
1990
+ 'total_permanent_income'?: string;
1991
+ /**
1992
+ * Total expense from all credit transactions
1993
+ * @type {string}
1994
+ * @memberof CreditAccount
1995
+ */
1996
+ 'total_expense'?: string;
1997
+ /**
1998
+ * Total expense from free credit transactions
1999
+ * @type {string}
2000
+ * @memberof CreditAccount
2001
+ */
2002
+ 'total_free_expense'?: string;
2003
+ /**
2004
+ * Total expense from reward credit transactions
2005
+ * @type {string}
2006
+ * @memberof CreditAccount
2007
+ */
2008
+ 'total_reward_expense'?: string;
2009
+ /**
2010
+ * Total expense from permanent credit transactions
2011
+ * @type {string}
2012
+ * @memberof CreditAccount
2013
+ */
2014
+ 'total_permanent_expense'?: string;
1967
2015
  /**
1968
2016
  * Timestamp when this account was created
1969
2017
  * @type {string}
@@ -2733,6 +2781,7 @@ export const EventType = {
2733
2781
  Refund: 'refund',
2734
2782
  Adjustment: 'adjustment',
2735
2783
  Refill: 'refill',
2784
+ Withdraw: 'withdraw',
2736
2785
  Reward: 'reward',
2737
2786
  EventReward: 'event_reward',
2738
2787
  RechargeBonus: 'recharge_bonus'
@@ -3132,6 +3181,7 @@ export const TransactionType = {
3132
3181
  Refund: 'refund',
3133
3182
  Adjustment: 'adjustment',
3134
3183
  Refill: 'refill',
3184
+ Withdraw: 'withdraw',
3135
3185
  Reward: 'reward',
3136
3186
  EventReward: 'event_reward',
3137
3187
  RechargeBonus: 'recharge_bonus'
package/base.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.6.26
7
+ * The version of the OpenAPI document: 0.6.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/common.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.6.26
7
+ * The version of the OpenAPI document: 0.6.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/configuration.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.6.26
7
+ * The version of the OpenAPI document: 0.6.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/api.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.6.26
5
+ * The version of the OpenAPI document: 0.6.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -1915,6 +1915,54 @@ export interface CreditAccount {
1915
1915
  * @memberof CreditAccount
1916
1916
  */
1917
1917
  'last_event_id'?: string | null;
1918
+ /**
1919
+ * Total income from all credit transactions
1920
+ * @type {string}
1921
+ * @memberof CreditAccount
1922
+ */
1923
+ 'total_income'?: string;
1924
+ /**
1925
+ * Total income from free credit transactions
1926
+ * @type {string}
1927
+ * @memberof CreditAccount
1928
+ */
1929
+ 'total_free_income'?: string;
1930
+ /**
1931
+ * Total income from reward credit transactions
1932
+ * @type {string}
1933
+ * @memberof CreditAccount
1934
+ */
1935
+ 'total_reward_income'?: string;
1936
+ /**
1937
+ * Total income from permanent credit transactions
1938
+ * @type {string}
1939
+ * @memberof CreditAccount
1940
+ */
1941
+ 'total_permanent_income'?: string;
1942
+ /**
1943
+ * Total expense from all credit transactions
1944
+ * @type {string}
1945
+ * @memberof CreditAccount
1946
+ */
1947
+ 'total_expense'?: string;
1948
+ /**
1949
+ * Total expense from free credit transactions
1950
+ * @type {string}
1951
+ * @memberof CreditAccount
1952
+ */
1953
+ 'total_free_expense'?: string;
1954
+ /**
1955
+ * Total expense from reward credit transactions
1956
+ * @type {string}
1957
+ * @memberof CreditAccount
1958
+ */
1959
+ 'total_reward_expense'?: string;
1960
+ /**
1961
+ * Total expense from permanent credit transactions
1962
+ * @type {string}
1963
+ * @memberof CreditAccount
1964
+ */
1965
+ 'total_permanent_expense'?: string;
1918
1966
  /**
1919
1967
  * Timestamp when this account was created
1920
1968
  * @type {string}
@@ -2663,6 +2711,7 @@ export declare const EventType: {
2663
2711
  readonly Refund: "refund";
2664
2712
  readonly Adjustment: "adjustment";
2665
2713
  readonly Refill: "refill";
2714
+ readonly Withdraw: "withdraw";
2666
2715
  readonly Reward: "reward";
2667
2716
  readonly EventReward: "event_reward";
2668
2717
  readonly RechargeBonus: "recharge_bonus";
@@ -3044,6 +3093,7 @@ export declare const TransactionType: {
3044
3093
  readonly Refund: "refund";
3045
3094
  readonly Adjustment: "adjustment";
3046
3095
  readonly Refill: "refill";
3096
+ readonly Withdraw: "withdraw";
3047
3097
  readonly Reward: "reward";
3048
3098
  readonly EventReward: "event_reward";
3049
3099
  readonly RechargeBonus: "recharge_bonus";
package/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.6.26
8
+ * The version of the OpenAPI document: 0.6.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -291,6 +291,7 @@ exports.EventType = {
291
291
  Refund: 'refund',
292
292
  Adjustment: 'adjustment',
293
293
  Refill: 'refill',
294
+ Withdraw: 'withdraw',
294
295
  Reward: 'reward',
295
296
  EventReward: 'event_reward',
296
297
  RechargeBonus: 'recharge_bonus'
@@ -350,6 +351,7 @@ exports.TransactionType = {
350
351
  Refund: 'refund',
351
352
  Adjustment: 'adjustment',
352
353
  Refill: 'refill',
354
+ Withdraw: 'withdraw',
353
355
  Reward: 'reward',
354
356
  EventReward: 'event_reward',
355
357
  RechargeBonus: 'recharge_bonus'
package/dist/base.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.6.26
5
+ * The version of the OpenAPI document: 0.6.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/base.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.6.26
8
+ * The version of the OpenAPI document: 0.6.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.6.26
5
+ * The version of the OpenAPI document: 0.6.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/common.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.6.26
8
+ * The version of the OpenAPI document: 0.6.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.6.26
5
+ * The version of the OpenAPI document: 0.6.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.6.26
8
+ * The version of the OpenAPI document: 0.6.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.d.ts CHANGED
@@ -2,7 +2,7 @@
2
2
  * Nation IntentKit API
3
3
  * API for Nation IntentKit services
4
4
  *
5
- * The version of the OpenAPI document: 0.6.26
5
+ * The version of the OpenAPI document: 0.6.28
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/dist/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * Nation IntentKit API
6
6
  * API for Nation IntentKit services
7
7
  *
8
- * The version of the OpenAPI document: 0.6.26
8
+ * The version of the OpenAPI document: 0.6.28
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -17,6 +17,14 @@ Name | Type | Description | Notes
17
17
  **income_at** | **string** | | [optional] [default to undefined]
18
18
  **expense_at** | **string** | | [optional] [default to undefined]
19
19
  **last_event_id** | **string** | | [optional] [default to undefined]
20
+ **total_income** | **string** | Total income from all credit transactions | [optional] [default to '0']
21
+ **total_free_income** | **string** | Total income from free credit transactions | [optional] [default to '0']
22
+ **total_reward_income** | **string** | Total income from reward credit transactions | [optional] [default to '0']
23
+ **total_permanent_income** | **string** | Total income from permanent credit transactions | [optional] [default to '0']
24
+ **total_expense** | **string** | Total expense from all credit transactions | [optional] [default to '0']
25
+ **total_free_expense** | **string** | Total expense from free credit transactions | [optional] [default to '0']
26
+ **total_reward_expense** | **string** | Total expense from reward credit transactions | [optional] [default to '0']
27
+ **total_permanent_expense** | **string** | Total expense from permanent credit transactions | [optional] [default to '0']
20
28
  **created_at** | **string** | Timestamp when this account was created | [default to undefined]
21
29
  **updated_at** | **string** | Timestamp when this account was last updated | [default to undefined]
22
30
 
@@ -37,6 +45,14 @@ const instance: CreditAccount = {
37
45
  income_at,
38
46
  expense_at,
39
47
  last_event_id,
48
+ total_income,
49
+ total_free_income,
50
+ total_reward_income,
51
+ total_permanent_income,
52
+ total_expense,
53
+ total_free_expense,
54
+ total_reward_expense,
55
+ total_permanent_expense,
40
56
  created_at,
41
57
  updated_at,
42
58
  };
package/docs/EventType.md CHANGED
@@ -22,6 +22,8 @@ Type of credit event.
22
22
 
23
23
  * `Refill` (value: `'refill'`)
24
24
 
25
+ * `Withdraw` (value: `'withdraw'`)
26
+
25
27
  * `Reward` (value: `'reward'`)
26
28
 
27
29
  * `EventReward` (value: `'event_reward'`)
@@ -27,8 +27,8 @@ Name | Type | Description | Notes
27
27
  **supports_presence_penalty** | **boolean** | | [optional] [default to true]
28
28
  **api_base** | **string** | | [optional] [default to undefined]
29
29
  **timeout** | **number** | | [optional] [default to 180]
30
- **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-06T11:12:10.613+00:00]
31
- **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-06T11:12:10.613+00:00]
30
+ **created_at** | **string** | Timestamp when this data was created | [optional] [default to 2025-09-10T13:42:15.459+00:00]
31
+ **updated_at** | **string** | Timestamp when this data was updated | [optional] [default to 2025-09-10T13:42:15.459+00:00]
32
32
  **provider_name** | **string** | | [default to undefined]
33
33
 
34
34
  ## Example
@@ -30,6 +30,8 @@ Type of credit transaction.
30
30
 
31
31
  * `Refill` (value: `'refill'`)
32
32
 
33
+ * `Withdraw` (value: `'withdraw'`)
34
+
33
35
  * `Reward` (value: `'reward'`)
34
36
 
35
37
  * `EventReward` (value: `'event_reward'`)
package/index.ts CHANGED
@@ -4,7 +4,7 @@
4
4
  * Nation IntentKit API
5
5
  * API for Nation IntentKit services
6
6
  *
7
- * The version of the OpenAPI document: 0.6.26
7
+ * The version of the OpenAPI document: 0.6.28
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crestal/nation-sdk",
3
- "version": "0.6.26",
3
+ "version": "0.6.28",
4
4
  "description": "OpenAPI client for @crestal/nation-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "repository": {