@nirvana-labs/nirvana 1.91.0 → 1.91.2
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/CHANGELOG.md +15 -0
- package/bin/migration-config.json +47 -47
- package/package.json +1 -1
- package/resources/api-keys/api-keys.d.mts +12 -12
- package/resources/api-keys/api-keys.d.mts.map +1 -1
- package/resources/api-keys/api-keys.d.ts +12 -12
- package/resources/api-keys/api-keys.d.ts.map +1 -1
- package/resources/api-keys/api-keys.js +15 -15
- package/resources/api-keys/api-keys.js.map +1 -1
- package/resources/api-keys/api-keys.mjs +15 -15
- package/resources/api-keys/api-keys.mjs.map +1 -1
- package/resources/audit-logs/audit-logs.d.mts +4 -4
- package/resources/audit-logs/audit-logs.d.mts.map +1 -1
- package/resources/audit-logs/audit-logs.d.ts +4 -4
- package/resources/audit-logs/audit-logs.d.ts.map +1 -1
- package/resources/audit-logs/audit-logs.js +6 -6
- package/resources/audit-logs/audit-logs.js.map +1 -1
- package/resources/audit-logs/audit-logs.mjs +6 -6
- package/resources/audit-logs/audit-logs.mjs.map +1 -1
- package/resources/compute/vms/vms.d.mts +14 -14
- package/resources/compute/vms/vms.d.mts.map +1 -1
- package/resources/compute/vms/vms.d.ts +14 -14
- package/resources/compute/vms/vms.d.ts.map +1 -1
- package/resources/compute/vms/vms.js +17 -17
- package/resources/compute/vms/vms.js.map +1 -1
- package/resources/compute/vms/vms.mjs +17 -17
- package/resources/compute/vms/vms.mjs.map +1 -1
- package/resources/compute/volumes/volumes.d.mts +22 -22
- package/resources/compute/volumes/volumes.d.mts.map +1 -1
- package/resources/compute/volumes/volumes.d.ts +22 -22
- package/resources/compute/volumes/volumes.d.ts.map +1 -1
- package/resources/compute/volumes/volumes.js +26 -26
- package/resources/compute/volumes/volumes.js.map +1 -1
- package/resources/compute/volumes/volumes.mjs +26 -26
- package/resources/compute/volumes/volumes.mjs.map +1 -1
- package/resources/instance-types/instance-types.d.mts +15 -15
- package/resources/instance-types/instance-types.d.mts.map +1 -1
- package/resources/instance-types/instance-types.d.ts +15 -15
- package/resources/instance-types/instance-types.d.ts.map +1 -1
- package/resources/instance-types/instance-types.js +14 -14
- package/resources/instance-types/instance-types.js.map +1 -1
- package/resources/instance-types/instance-types.mjs +14 -14
- package/resources/instance-types/instance-types.mjs.map +1 -1
- package/resources/networking/connect/connections.d.mts +18 -18
- package/resources/networking/connect/connections.d.mts.map +1 -1
- package/resources/networking/connect/connections.d.ts +18 -18
- package/resources/networking/connect/connections.d.ts.map +1 -1
- package/resources/networking/connect/connections.js +21 -21
- package/resources/networking/connect/connections.js.map +1 -1
- package/resources/networking/connect/connections.mjs +21 -21
- package/resources/networking/connect/connections.mjs.map +1 -1
- package/resources/networking/firewall-rules.d.mts +27 -27
- package/resources/networking/firewall-rules.d.mts.map +1 -1
- package/resources/networking/firewall-rules.d.ts +27 -27
- package/resources/networking/firewall-rules.d.ts.map +1 -1
- package/resources/networking/firewall-rules.js +28 -28
- package/resources/networking/firewall-rules.js.map +1 -1
- package/resources/networking/firewall-rules.mjs +28 -28
- package/resources/networking/firewall-rules.mjs.map +1 -1
- package/resources/networking/index.d.mts +1 -1
- package/resources/networking/index.d.mts.map +1 -1
- package/resources/networking/index.d.ts +1 -1
- package/resources/networking/index.d.ts.map +1 -1
- package/resources/networking/networking.d.mts +1 -1
- package/resources/networking/networking.d.mts.map +1 -1
- package/resources/networking/networking.d.ts +1 -1
- package/resources/networking/networking.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.mts +16 -16
- package/resources/networking/vpcs/vpcs.d.mts.map +1 -1
- package/resources/networking/vpcs/vpcs.d.ts +16 -16
- package/resources/networking/vpcs/vpcs.d.ts.map +1 -1
- package/resources/networking/vpcs/vpcs.js +19 -19
- package/resources/networking/vpcs/vpcs.js.map +1 -1
- package/resources/networking/vpcs/vpcs.mjs +19 -19
- package/resources/networking/vpcs/vpcs.mjs.map +1 -1
- package/resources/nks/clusters/clusters.d.mts +20 -20
- package/resources/nks/clusters/clusters.d.mts.map +1 -1
- package/resources/nks/clusters/clusters.d.ts +20 -20
- package/resources/nks/clusters/clusters.d.ts.map +1 -1
- package/resources/nks/clusters/clusters.js +19 -19
- package/resources/nks/clusters/clusters.js.map +1 -1
- package/resources/nks/clusters/clusters.mjs +19 -19
- package/resources/nks/clusters/clusters.mjs.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.mts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.d.ts +17 -17
- package/resources/nks/clusters/controllers/controllers.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/controllers.js +16 -16
- package/resources/nks/clusters/controllers/controllers.js.map +1 -1
- package/resources/nks/clusters/controllers/controllers.mjs +16 -16
- package/resources/nks/clusters/controllers/controllers.mjs.map +1 -1
- package/resources/nks/clusters/controllers/index.d.mts +2 -2
- package/resources/nks/clusters/controllers/index.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/index.d.ts +2 -2
- package/resources/nks/clusters/controllers/index.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.mts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.d.ts +22 -22
- package/resources/nks/clusters/controllers/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/controllers/volumes.js +18 -18
- package/resources/nks/clusters/controllers/volumes.js.map +1 -1
- package/resources/nks/clusters/controllers/volumes.mjs +18 -18
- package/resources/nks/clusters/controllers/volumes.mjs.map +1 -1
- package/resources/nks/clusters/index.d.mts +4 -4
- package/resources/nks/clusters/index.d.mts.map +1 -1
- package/resources/nks/clusters/index.d.ts +4 -4
- package/resources/nks/clusters/index.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.mts +20 -20
- package/resources/nks/clusters/load-balancers.d.mts.map +1 -1
- package/resources/nks/clusters/load-balancers.d.ts +20 -20
- package/resources/nks/clusters/load-balancers.d.ts.map +1 -1
- package/resources/nks/clusters/load-balancers.js +16 -16
- package/resources/nks/clusters/load-balancers.js.map +1 -1
- package/resources/nks/clusters/load-balancers.mjs +16 -16
- package/resources/nks/clusters/load-balancers.mjs.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.mts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.mts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.d.ts +16 -16
- package/resources/nks/clusters/persistent-volume-claims.d.ts.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.js +16 -16
- package/resources/nks/clusters/persistent-volume-claims.js.map +1 -1
- package/resources/nks/clusters/persistent-volume-claims.mjs +16 -16
- package/resources/nks/clusters/persistent-volume-claims.mjs.map +1 -1
- package/resources/nks/clusters/pools/index.d.mts +2 -2
- package/resources/nks/clusters/pools/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/index.d.ts +2 -2
- package/resources/nks/clusters/pools/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.mts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/index.d.ts +2 -2
- package/resources/nks/clusters/pools/nodes/index.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.mts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.d.ts +25 -25
- package/resources/nks/clusters/pools/nodes/nodes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.js +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/nodes.mjs +19 -19
- package/resources/nks/clusters/pools/nodes/nodes.mjs.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.mts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.mts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.d.ts +26 -26
- package/resources/nks/clusters/pools/nodes/volumes.d.ts.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.js +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.js.map +1 -1
- package/resources/nks/clusters/pools/nodes/volumes.mjs +18 -18
- package/resources/nks/clusters/pools/nodes/volumes.mjs.map +1 -1
- package/resources/nks/clusters/pools/pools.d.mts +26 -26
- package/resources/nks/clusters/pools/pools.d.mts.map +1 -1
- package/resources/nks/clusters/pools/pools.d.ts +26 -26
- package/resources/nks/clusters/pools/pools.d.ts.map +1 -1
- package/resources/nks/clusters/pools/pools.js +25 -25
- package/resources/nks/clusters/pools/pools.js.map +1 -1
- package/resources/nks/clusters/pools/pools.mjs +25 -25
- package/resources/nks/clusters/pools/pools.mjs.map +1 -1
- package/resources/operations/operations.d.mts +4 -4
- package/resources/operations/operations.d.mts.map +1 -1
- package/resources/operations/operations.d.ts +4 -4
- package/resources/operations/operations.d.ts.map +1 -1
- package/resources/operations/operations.js +6 -6
- package/resources/operations/operations.js.map +1 -1
- package/resources/operations/operations.mjs +6 -6
- package/resources/operations/operations.mjs.map +1 -1
- package/resources/organizations/address.d.mts +175 -0
- package/resources/organizations/address.d.mts.map +1 -0
- package/resources/organizations/address.d.ts +175 -0
- package/resources/organizations/address.d.ts.map +1 -0
- package/resources/organizations/address.js +56 -0
- package/resources/organizations/address.js.map +1 -0
- package/resources/organizations/address.mjs +52 -0
- package/resources/organizations/address.mjs.map +1 -0
- package/resources/organizations/index.d.mts +2 -1
- package/resources/organizations/index.d.mts.map +1 -1
- package/resources/organizations/index.d.ts +2 -1
- package/resources/organizations/index.d.ts.map +1 -1
- package/resources/organizations/index.js +3 -1
- package/resources/organizations/index.js.map +1 -1
- package/resources/organizations/index.mjs +1 -0
- package/resources/organizations/index.mjs.map +1 -1
- package/resources/organizations/memberships.d.mts +16 -16
- package/resources/organizations/memberships.d.mts.map +1 -1
- package/resources/organizations/memberships.d.ts +16 -16
- package/resources/organizations/memberships.d.ts.map +1 -1
- package/resources/organizations/memberships.js +16 -16
- package/resources/organizations/memberships.js.map +1 -1
- package/resources/organizations/memberships.mjs +16 -16
- package/resources/organizations/memberships.mjs.map +1 -1
- package/resources/organizations/organizations.d.mts +16 -12
- package/resources/organizations/organizations.d.mts.map +1 -1
- package/resources/organizations/organizations.d.ts +16 -12
- package/resources/organizations/organizations.d.ts.map +1 -1
- package/resources/organizations/organizations.js +17 -13
- package/resources/organizations/organizations.js.map +1 -1
- package/resources/organizations/organizations.mjs +17 -13
- package/resources/organizations/organizations.mjs.map +1 -1
- package/resources/projects/projects.d.mts +12 -12
- package/resources/projects/projects.d.mts.map +1 -1
- package/resources/projects/projects.d.ts +12 -12
- package/resources/projects/projects.d.ts.map +1 -1
- package/resources/projects/projects.js +15 -15
- package/resources/projects/projects.js.map +1 -1
- package/resources/projects/projects.mjs +15 -15
- package/resources/projects/projects.mjs.map +1 -1
- package/resources/quotas/quotas.d.mts +6 -6
- package/resources/quotas/quotas.d.mts.map +1 -1
- package/resources/quotas/quotas.d.ts +6 -6
- package/resources/quotas/quotas.d.ts.map +1 -1
- package/resources/quotas/quotas.js +8 -8
- package/resources/quotas/quotas.js.map +1 -1
- package/resources/quotas/quotas.mjs +8 -8
- package/resources/quotas/quotas.mjs.map +1 -1
- package/resources/regions/regions.d.mts +9 -9
- package/resources/regions/regions.d.mts.map +1 -1
- package/resources/regions/regions.d.ts +9 -9
- package/resources/regions/regions.d.ts.map +1 -1
- package/resources/regions/regions.js +11 -11
- package/resources/regions/regions.js.map +1 -1
- package/resources/regions/regions.mjs +11 -11
- package/resources/regions/regions.mjs.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.mts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.mts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.d.ts +11 -11
- package/resources/rpc-nodes/dedicated/dedicated.d.ts.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.js +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.js.map +1 -1
- package/resources/rpc-nodes/dedicated/dedicated.mjs +13 -13
- package/resources/rpc-nodes/dedicated/dedicated.mjs.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.mts +14 -14
- package/resources/rpc-nodes/flex/flex.d.mts.map +1 -1
- package/resources/rpc-nodes/flex/flex.d.ts +14 -14
- package/resources/rpc-nodes/flex/flex.d.ts.map +1 -1
- package/resources/rpc-nodes/flex/flex.js +17 -17
- package/resources/rpc-nodes/flex/flex.js.map +1 -1
- package/resources/rpc-nodes/flex/flex.mjs +17 -17
- package/resources/rpc-nodes/flex/flex.mjs.map +1 -1
- package/resources/usage/usage.d.mts +12 -12
- package/resources/usage/usage.d.mts.map +1 -1
- package/resources/usage/usage.d.ts +12 -12
- package/resources/usage/usage.d.ts.map +1 -1
- package/resources/usage/usage.js +14 -14
- package/resources/usage/usage.js.map +1 -1
- package/resources/usage/usage.mjs +14 -14
- package/resources/usage/usage.mjs.map +1 -1
- package/resources/user/security.d.mts +4 -4
- package/resources/user/security.d.mts.map +1 -1
- package/resources/user/security.d.ts +4 -4
- package/resources/user/security.d.ts.map +1 -1
- package/resources/user/security.js +6 -6
- package/resources/user/security.js.map +1 -1
- package/resources/user/security.mjs +6 -6
- package/resources/user/security.mjs.map +1 -1
- package/src/resources/api-keys/api-keys.ts +18 -18
- package/src/resources/api-keys/api.md +2 -2
- package/src/resources/audit-logs/api.md +1 -1
- package/src/resources/audit-logs/audit-logs.ts +7 -7
- package/src/resources/compute/api.md +4 -4
- package/src/resources/compute/vms/vms.ts +17 -17
- package/src/resources/compute/volumes/volumes.ts +28 -28
- package/src/resources/instance-types/api.md +1 -1
- package/src/resources/instance-types/instance-types.ts +19 -19
- package/src/resources/networking/api.md +6 -6
- package/src/resources/networking/connect/connections.ts +30 -30
- package/src/resources/networking/firewall-rules.ts +46 -46
- package/src/resources/networking/index.ts +2 -2
- package/src/resources/networking/networking.ts +2 -2
- package/src/resources/networking/vpcs/vpcs.ts +21 -21
- package/src/resources/nks/api.md +11 -11
- package/src/resources/nks/clusters/clusters.ts +28 -28
- package/src/resources/nks/clusters/controllers/controllers.ts +25 -25
- package/src/resources/nks/clusters/controllers/index.ts +2 -2
- package/src/resources/nks/clusters/controllers/volumes.ts +31 -31
- package/src/resources/nks/clusters/index.ts +5 -5
- package/src/resources/nks/clusters/load-balancers.ts +29 -29
- package/src/resources/nks/clusters/persistent-volume-claims.ts +27 -27
- package/src/resources/nks/clusters/pools/index.ts +4 -4
- package/src/resources/nks/clusters/pools/nodes/index.ts +3 -3
- package/src/resources/nks/clusters/pools/nodes/nodes.ts +39 -39
- package/src/resources/nks/clusters/pools/nodes/volumes.ts +36 -36
- package/src/resources/nks/clusters/pools/pools.ts +44 -44
- package/src/resources/operations/api.md +1 -1
- package/src/resources/operations/operations.ts +6 -6
- package/src/resources/organizations/address.ts +227 -0
- package/src/resources/organizations/api.md +14 -2
- package/src/resources/organizations/index.ts +7 -1
- package/src/resources/organizations/memberships.ts +24 -24
- package/src/resources/organizations/organizations.ts +26 -15
- package/src/resources/projects/api.md +2 -2
- package/src/resources/projects/projects.ts +18 -18
- package/src/resources/quotas/api.md +1 -1
- package/src/resources/quotas/quotas.ts +8 -8
- package/src/resources/regions/api.md +1 -1
- package/src/resources/regions/regions.ts +12 -12
- package/src/resources/rpc-nodes/api.md +3 -3
- package/src/resources/rpc-nodes/dedicated/dedicated.ts +14 -14
- package/src/resources/rpc-nodes/flex/flex.ts +17 -17
- package/src/resources/usage/api.md +1 -1
- package/src/resources/usage/usage.ts +15 -15
- package/src/resources/user/api.md +1 -1
- package/src/resources/user/security.ts +6 -6
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -34,38 +34,34 @@ export class Pools extends APIResource {
|
|
|
34
34
|
return this._client.post(path `/v1/nks/clusters/${clusterID}/pools`, { body, ...options });
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* Get details about an NKS node pool
|
|
38
38
|
*
|
|
39
39
|
* @example
|
|
40
40
|
* ```ts
|
|
41
|
-
* const
|
|
41
|
+
* const nksNodePool = await client.nks.clusters.pools.get(
|
|
42
42
|
* 'pool_id',
|
|
43
43
|
* { cluster_id: 'cluster_id' },
|
|
44
44
|
* );
|
|
45
45
|
* ```
|
|
46
46
|
*/
|
|
47
|
-
|
|
48
|
-
const { cluster_id
|
|
49
|
-
return this._client.
|
|
47
|
+
get(poolID, params, options) {
|
|
48
|
+
const { cluster_id } = params;
|
|
49
|
+
return this._client.get(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
*
|
|
52
|
+
* Update an NKS node pool
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```ts
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* 'cluster_id',
|
|
59
|
-
* )
|
|
60
|
-
* // ...
|
|
61
|
-
* }
|
|
56
|
+
* const operation = await client.nks.clusters.pools.update(
|
|
57
|
+
* 'pool_id',
|
|
58
|
+
* { cluster_id: 'cluster_id' },
|
|
59
|
+
* );
|
|
62
60
|
* ```
|
|
63
61
|
*/
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
...options,
|
|
68
|
-
});
|
|
62
|
+
update(poolID, params, options) {
|
|
63
|
+
const { cluster_id, ...body } = params;
|
|
64
|
+
return this._client.patch(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, { body, ...options });
|
|
69
65
|
}
|
|
70
66
|
/**
|
|
71
67
|
* Delete an NKS node pool
|
|
@@ -83,19 +79,23 @@ export class Pools extends APIResource {
|
|
|
83
79
|
return this._client.delete(path `/v1/nks/clusters/${cluster_id}/pools/${poolID}`, options);
|
|
84
80
|
}
|
|
85
81
|
/**
|
|
86
|
-
*
|
|
82
|
+
* List all node pools in an NKS cluster
|
|
87
83
|
*
|
|
88
84
|
* @example
|
|
89
85
|
* ```ts
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* )
|
|
86
|
+
* // Automatically fetches more pages as needed.
|
|
87
|
+
* for await (const nksNodePool of client.nks.clusters.pools.list(
|
|
88
|
+
* 'cluster_id',
|
|
89
|
+
* )) {
|
|
90
|
+
* // ...
|
|
91
|
+
* }
|
|
94
92
|
* ```
|
|
95
93
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
list(clusterID, query = {}, options) {
|
|
95
|
+
return this._client.getAPIList(path `/v1/nks/clusters/${clusterID}/pools`, (Cursor), {
|
|
96
|
+
query,
|
|
97
|
+
...options,
|
|
98
|
+
});
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
Pools.Availability = Availability;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pools.mjs","sourceRoot":"","sources":["../../../../src/resources/nks/clusters/pools/pools.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,sCAAkC;AAIxD,OAAO,KAAK,eAAe,2BAAuB;AAClD,OAAO,EAAE,YAAY,EAAsD,2BAAuB;AAClG,OAAO,KAAK,QAAQ,0BAAsB;AAC1C,OAAO,EAOL,KAAK,GACN,0BAAsB;AAEvB,OAAO,EAAE,MAAM,EAAkC,wCAAoC;AAErF,OAAO,EAAE,IAAI,EAAE,4CAAwC;AAEvD,MAAM,OAAO,KAAM,SAAQ,WAAW;IAAtC;;QACE,iBAAY,GAAiC,IAAI,eAAe,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5F,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA2G3D,CAAC;IAzGC;;;;;;;;;;;;;;;;;OAiBG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAsB,EACtB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,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MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACvC,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxG,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,MAAc,EACd,MAAwB,EACxB,OAAwB;QAExB,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,CAAC;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oBAAoB,UAAU,UAAU,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5F,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,CACF,SAAiB,EACjB,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,oBAAoB,SAAS,QAAQ,EAAE,CAAA,MAAmB,CAAA,EAAE;YAC7F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;CACF;AAqND,KAAK,CAAC,YAAY,GAAG,YAAY,CAAC;AAClC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC"}
|
|
@@ -4,14 +4,14 @@ import { APIPromise } from "../../core/api-promise.mjs";
|
|
|
4
4
|
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.mjs";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
6
6
|
export declare class Operations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* List all operations
|
|
9
|
-
*/
|
|
10
|
-
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
11
7
|
/**
|
|
12
8
|
* Get details about a specific operation
|
|
13
9
|
*/
|
|
14
10
|
get(operationID: string, options?: RequestOptions): APIPromise<Operation>;
|
|
11
|
+
/**
|
|
12
|
+
* List all operations
|
|
13
|
+
*/
|
|
14
|
+
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
15
15
|
}
|
|
16
16
|
export type OperationsCursor = Cursor<Operation>;
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"operations.d.mts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,MAAM,sBAAkB;AACpC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,kCAA8B;AAC/E,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,SAAS,CAAC;IAIzE;;OAEG;IACH,IAAI,CAAC,KAAK,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,WAAW,CAAC,gBAAgB,EAAE,SAAS,CAAC;CAGrG;AAED,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;AAEjD;;GAEG;AACH,MAAM,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M,MAAM,aAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEvE,MAAM,WAAW,mBAAoB,SAAQ,YAAY;IACvD;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,UAAU,CAAC;IAClC,OAAO,EACL,KAAK,SAAS,IAAI,SAAS,EAC3B,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -4,14 +4,14 @@ import { APIPromise } from "../../core/api-promise.js";
|
|
|
4
4
|
import { Cursor, type CursorParams, PagePromise } from "../../core/pagination.js";
|
|
5
5
|
import { RequestOptions } from "../../internal/request-options.js";
|
|
6
6
|
export declare class Operations extends APIResource {
|
|
7
|
-
/**
|
|
8
|
-
* List all operations
|
|
9
|
-
*/
|
|
10
|
-
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
11
7
|
/**
|
|
12
8
|
* Get details about a specific operation
|
|
13
9
|
*/
|
|
14
10
|
get(operationID: string, options?: RequestOptions): APIPromise<Operation>;
|
|
11
|
+
/**
|
|
12
|
+
* List all operations
|
|
13
|
+
*/
|
|
14
|
+
list(query: OperationListParams, options?: RequestOptions): PagePromise<OperationsCursor, Operation>;
|
|
15
15
|
}
|
|
16
16
|
export type OperationsCursor = Cursor<Operation>;
|
|
17
17
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings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gB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,aAAa,IAAI,aAAa,EACnC,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -6,18 +6,18 @@ const resource_1 = require("../../core/resource.js");
|
|
|
6
6
|
const pagination_1 = require("../../core/pagination.js");
|
|
7
7
|
const path_1 = require("../../internal/utils/path.js");
|
|
8
8
|
class Operations extends resource_1.APIResource {
|
|
9
|
-
/**
|
|
10
|
-
* List all operations
|
|
11
|
-
*/
|
|
12
|
-
list(query, options) {
|
|
13
|
-
return this._client.getAPIList('/v1/operations', (pagination_1.Cursor), { query, ...options });
|
|
14
|
-
}
|
|
15
9
|
/**
|
|
16
10
|
* Get details about a specific operation
|
|
17
11
|
*/
|
|
18
12
|
get(operationID, options) {
|
|
19
13
|
return this._client.get((0, path_1.path) `/v1/operations/${operationID}`, options);
|
|
20
14
|
}
|
|
15
|
+
/**
|
|
16
|
+
* List all operations
|
|
17
|
+
*/
|
|
18
|
+
list(query, options) {
|
|
19
|
+
return this._client.getAPIList('/v1/operations', (pagination_1.Cursor), { query, ...options });
|
|
20
|
+
}
|
|
21
21
|
}
|
|
22
22
|
exports.Operations = Operations;
|
|
23
23
|
//# sourceMappingURL=operations.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,yDAA+E;AAE/E,uDAAiD;AAEjD,MAAa,UAAW,SAAQ,sBAAW;IACzC;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAA0B,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,mBAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF;AAdD,gCAcC"}
|
|
@@ -3,17 +3,17 @@ import { APIResource } from "../../core/resource.mjs";
|
|
|
3
3
|
import { Cursor } from "../../core/pagination.mjs";
|
|
4
4
|
import { path } from "../../internal/utils/path.mjs";
|
|
5
5
|
export class Operations extends APIResource {
|
|
6
|
-
/**
|
|
7
|
-
* List all operations
|
|
8
|
-
*/
|
|
9
|
-
list(query, options) {
|
|
10
|
-
return this._client.getAPIList('/v1/operations', (Cursor), { query, ...options });
|
|
11
|
-
}
|
|
12
6
|
/**
|
|
13
7
|
* Get details about a specific operation
|
|
14
8
|
*/
|
|
15
9
|
get(operationID, options) {
|
|
16
10
|
return this._client.get(path `/v1/operations/${operationID}`, options);
|
|
17
11
|
}
|
|
12
|
+
/**
|
|
13
|
+
* List all operations
|
|
14
|
+
*/
|
|
15
|
+
list(query, options) {
|
|
16
|
+
return this._client.getAPIList('/v1/operations', (Cursor), { query, ...options });
|
|
17
|
+
}
|
|
18
18
|
}
|
|
19
19
|
//# sourceMappingURL=operations.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAE/E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"operations.mjs","sourceRoot":"","sources":["../../src/resources/operations/operations.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,MAAM,EAAkC,kCAA8B;AAE/E,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,UAAW,SAAQ,WAAW;IACzC;;OAEG;IACH,GAAG,CAAC,WAAmB,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,kBAAkB,WAAW,EAAE,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,KAA0B,EAAE,OAAwB;QACvD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,gBAAgB,EAAE,CAAA,MAAiB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7F,CAAC;CACF"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Address extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create the address for an organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const organizationAddress =
|
|
11
|
+
* await client.organizations.address.create(
|
|
12
|
+
* 'organization_id',
|
|
13
|
+
* {
|
|
14
|
+
* city: 'San Francisco',
|
|
15
|
+
* country: 'US',
|
|
16
|
+
* line1: '123 Main St',
|
|
17
|
+
* postal_code: '94105',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(organizationID: string, body: AddressCreateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the address for an organization
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const organizationAddress =
|
|
29
|
+
* await client.organizations.address.get('organization_id');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
33
|
+
/**
|
|
34
|
+
* Update the address for an organization
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const organizationAddress =
|
|
39
|
+
* await client.organizations.address.update(
|
|
40
|
+
* 'organization_id',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
update(organizationID: string, body: AddressUpdateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Organization address details.
|
|
48
|
+
*/
|
|
49
|
+
export interface OrganizationAddress {
|
|
50
|
+
/**
|
|
51
|
+
* Address ID.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* City or locality.
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
60
|
+
*/
|
|
61
|
+
country: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the address was created.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* First line of the street address.
|
|
68
|
+
*/
|
|
69
|
+
line1: string;
|
|
70
|
+
/**
|
|
71
|
+
* Second line of the street address. Null when not provided.
|
|
72
|
+
*/
|
|
73
|
+
line2: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Organization ID the address belongs to.
|
|
76
|
+
*/
|
|
77
|
+
organization_id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Postal or ZIP code.
|
|
80
|
+
*/
|
|
81
|
+
postal_code: string;
|
|
82
|
+
/**
|
|
83
|
+
* State, province, or region. Null when not provided.
|
|
84
|
+
*/
|
|
85
|
+
state: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Tax identification number. Null when not provided.
|
|
88
|
+
*/
|
|
89
|
+
tax_id: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Type of the tax identification number. Null when not provided.
|
|
92
|
+
*/
|
|
93
|
+
tax_id_type: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* When the address was updated.
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AddressCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* City or locality.
|
|
102
|
+
*/
|
|
103
|
+
city: string;
|
|
104
|
+
/**
|
|
105
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
106
|
+
*/
|
|
107
|
+
country: string;
|
|
108
|
+
/**
|
|
109
|
+
* First line of the street address.
|
|
110
|
+
*/
|
|
111
|
+
line1: string;
|
|
112
|
+
/**
|
|
113
|
+
* Postal or ZIP code.
|
|
114
|
+
*/
|
|
115
|
+
postal_code: string;
|
|
116
|
+
/**
|
|
117
|
+
* Second line of the street address (suite, unit, building).
|
|
118
|
+
*/
|
|
119
|
+
line2?: string;
|
|
120
|
+
/**
|
|
121
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
122
|
+
*/
|
|
123
|
+
state?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
126
|
+
*/
|
|
127
|
+
tax_id?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
130
|
+
* Optional.
|
|
131
|
+
*/
|
|
132
|
+
tax_id_type?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface AddressUpdateParams {
|
|
135
|
+
/**
|
|
136
|
+
* City or locality.
|
|
137
|
+
*/
|
|
138
|
+
city?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
141
|
+
*/
|
|
142
|
+
country?: string;
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
149
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
150
|
+
*/
|
|
151
|
+
line2?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Postal or ZIP code.
|
|
154
|
+
*/
|
|
155
|
+
postal_code?: string;
|
|
156
|
+
/**
|
|
157
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
158
|
+
* a value to set it.
|
|
159
|
+
*/
|
|
160
|
+
state?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
163
|
+
* null to clear, or send a value to set it.
|
|
164
|
+
*/
|
|
165
|
+
tax_id?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
168
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
169
|
+
*/
|
|
170
|
+
tax_id_type?: string | null;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace Address {
|
|
173
|
+
export { type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=address.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.mts","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],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;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC7B;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class Address extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create the address for an organization
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```ts
|
|
10
|
+
* const organizationAddress =
|
|
11
|
+
* await client.organizations.address.create(
|
|
12
|
+
* 'organization_id',
|
|
13
|
+
* {
|
|
14
|
+
* city: 'San Francisco',
|
|
15
|
+
* country: 'US',
|
|
16
|
+
* line1: '123 Main St',
|
|
17
|
+
* postal_code: '94105',
|
|
18
|
+
* },
|
|
19
|
+
* );
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
create(organizationID: string, body: AddressCreateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
23
|
+
/**
|
|
24
|
+
* Get the address for an organization
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const organizationAddress =
|
|
29
|
+
* await client.organizations.address.get('organization_id');
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
get(organizationID: string, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
33
|
+
/**
|
|
34
|
+
* Update the address for an organization
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const organizationAddress =
|
|
39
|
+
* await client.organizations.address.update(
|
|
40
|
+
* 'organization_id',
|
|
41
|
+
* );
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
update(organizationID: string, body: AddressUpdateParams, options?: RequestOptions): APIPromise<OrganizationAddress>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Organization address details.
|
|
48
|
+
*/
|
|
49
|
+
export interface OrganizationAddress {
|
|
50
|
+
/**
|
|
51
|
+
* Address ID.
|
|
52
|
+
*/
|
|
53
|
+
id: string;
|
|
54
|
+
/**
|
|
55
|
+
* City or locality.
|
|
56
|
+
*/
|
|
57
|
+
city: string;
|
|
58
|
+
/**
|
|
59
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
60
|
+
*/
|
|
61
|
+
country: string;
|
|
62
|
+
/**
|
|
63
|
+
* When the address was created.
|
|
64
|
+
*/
|
|
65
|
+
created_at: string;
|
|
66
|
+
/**
|
|
67
|
+
* First line of the street address.
|
|
68
|
+
*/
|
|
69
|
+
line1: string;
|
|
70
|
+
/**
|
|
71
|
+
* Second line of the street address. Null when not provided.
|
|
72
|
+
*/
|
|
73
|
+
line2: string | null;
|
|
74
|
+
/**
|
|
75
|
+
* Organization ID the address belongs to.
|
|
76
|
+
*/
|
|
77
|
+
organization_id: string;
|
|
78
|
+
/**
|
|
79
|
+
* Postal or ZIP code.
|
|
80
|
+
*/
|
|
81
|
+
postal_code: string;
|
|
82
|
+
/**
|
|
83
|
+
* State, province, or region. Null when not provided.
|
|
84
|
+
*/
|
|
85
|
+
state: string | null;
|
|
86
|
+
/**
|
|
87
|
+
* Tax identification number. Null when not provided.
|
|
88
|
+
*/
|
|
89
|
+
tax_id: string | null;
|
|
90
|
+
/**
|
|
91
|
+
* Type of the tax identification number. Null when not provided.
|
|
92
|
+
*/
|
|
93
|
+
tax_id_type: string | null;
|
|
94
|
+
/**
|
|
95
|
+
* When the address was updated.
|
|
96
|
+
*/
|
|
97
|
+
updated_at: string;
|
|
98
|
+
}
|
|
99
|
+
export interface AddressCreateParams {
|
|
100
|
+
/**
|
|
101
|
+
* City or locality.
|
|
102
|
+
*/
|
|
103
|
+
city: string;
|
|
104
|
+
/**
|
|
105
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
106
|
+
*/
|
|
107
|
+
country: string;
|
|
108
|
+
/**
|
|
109
|
+
* First line of the street address.
|
|
110
|
+
*/
|
|
111
|
+
line1: string;
|
|
112
|
+
/**
|
|
113
|
+
* Postal or ZIP code.
|
|
114
|
+
*/
|
|
115
|
+
postal_code: string;
|
|
116
|
+
/**
|
|
117
|
+
* Second line of the street address (suite, unit, building).
|
|
118
|
+
*/
|
|
119
|
+
line2?: string;
|
|
120
|
+
/**
|
|
121
|
+
* State, province, or region. Required by some tax jurisdictions (e.g. US, CA).
|
|
122
|
+
*/
|
|
123
|
+
state?: string;
|
|
124
|
+
/**
|
|
125
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Optional.
|
|
126
|
+
*/
|
|
127
|
+
tax_id?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
130
|
+
* Optional.
|
|
131
|
+
*/
|
|
132
|
+
tax_id_type?: string;
|
|
133
|
+
}
|
|
134
|
+
export interface AddressUpdateParams {
|
|
135
|
+
/**
|
|
136
|
+
* City or locality.
|
|
137
|
+
*/
|
|
138
|
+
city?: string;
|
|
139
|
+
/**
|
|
140
|
+
* Two-letter ISO 3166-1 alpha-2 country code.
|
|
141
|
+
*/
|
|
142
|
+
country?: string;
|
|
143
|
+
/**
|
|
144
|
+
* First line of the street address.
|
|
145
|
+
*/
|
|
146
|
+
line1?: string;
|
|
147
|
+
/**
|
|
148
|
+
* Second line of the street address (suite, unit, building). Omit to leave
|
|
149
|
+
* unchanged, send null to clear, or send a value to set it.
|
|
150
|
+
*/
|
|
151
|
+
line2?: string | null;
|
|
152
|
+
/**
|
|
153
|
+
* Postal or ZIP code.
|
|
154
|
+
*/
|
|
155
|
+
postal_code?: string;
|
|
156
|
+
/**
|
|
157
|
+
* State, province, or region. Omit to leave unchanged, send null to clear, or send
|
|
158
|
+
* a value to set it.
|
|
159
|
+
*/
|
|
160
|
+
state?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
* Tax identification number (e.g. VAT, EIN, ABN). Omit to leave unchanged, send
|
|
163
|
+
* null to clear, or send a value to set it.
|
|
164
|
+
*/
|
|
165
|
+
tax_id?: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* Type of the tax identification number (e.g. eu_vat, us_ein, gb_vat, au_abn).
|
|
168
|
+
* Omit to leave unchanged, send null to clear, or send a value to set it.
|
|
169
|
+
*/
|
|
170
|
+
tax_id_type?: string | null;
|
|
171
|
+
}
|
|
172
|
+
export declare namespace Address {
|
|
173
|
+
export { type OrganizationAddress as OrganizationAddress, type AddressCreateParams as AddressCreateParams, type AddressUpdateParams as AddressUpdateParams, };
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=address.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.d.ts","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;;;;;;;OAQG;IACH,GAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;IAItF;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAc,EAAE,MAAM,EACtB,IAAI,EAAE,mBAAmB,EACzB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;CAGnC;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;OAEG;IACH,eAAe,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,KAAK,EAAE,MAAM,GAAG,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0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Address = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Address extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create the address for an organization
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```ts
|
|
13
|
+
* const organizationAddress =
|
|
14
|
+
* await client.organizations.address.create(
|
|
15
|
+
* 'organization_id',
|
|
16
|
+
* {
|
|
17
|
+
* city: 'San Francisco',
|
|
18
|
+
* country: 'US',
|
|
19
|
+
* line1: '123 Main St',
|
|
20
|
+
* postal_code: '94105',
|
|
21
|
+
* },
|
|
22
|
+
* );
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
create(organizationID, body, options) {
|
|
26
|
+
return this._client.post((0, path_1.path) `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Get the address for an organization
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```ts
|
|
33
|
+
* const organizationAddress =
|
|
34
|
+
* await client.organizations.address.get('organization_id');
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
get(organizationID, options) {
|
|
38
|
+
return this._client.get((0, path_1.path) `/v1/organizations/${organizationID}/address`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update the address for an organization
|
|
42
|
+
*
|
|
43
|
+
* @example
|
|
44
|
+
* ```ts
|
|
45
|
+
* const organizationAddress =
|
|
46
|
+
* await client.organizations.address.update(
|
|
47
|
+
* 'organization_id',
|
|
48
|
+
* );
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
update(organizationID, body, options) {
|
|
52
|
+
return this._client.patch((0, path_1.path) `/v1/organizations/${organizationID}/address`, { body, ...options });
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.Address = Address;
|
|
56
|
+
//# sourceMappingURL=address.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"address.js","sourceRoot":"","sources":["../../src/resources/organizations/address.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpG,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CAAC,cAAsB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,OAAO,CAAC,CAAC;IACtF,CAAC;IAED;;;;;;;;;;OAUG;IACH,MAAM,CACJ,cAAsB,EACtB,IAAyB,EACzB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,cAAc,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrG,CAAC;CACF;AAzDD,0BAyDC"}
|