@puppi/adapter-stripe 0.0.0-stage → 0.1.1
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/LICENSE +202 -0
- package/README.md +19 -2
- package/dist/define.d.ts +18 -0
- package/dist/define.d.ts.map +1 -0
- package/dist/define.js +12 -0
- package/dist/define.js.map +1 -0
- package/dist/index.d.ts +37 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +81 -0
- package/dist/index.js.map +1 -0
- package/dist/openapi.d.ts +157 -0
- package/dist/openapi.d.ts.map +1 -0
- package/dist/openapi.js +6 -0
- package/dist/openapi.js.map +1 -0
- package/dist/operations.d.ts +11 -0
- package/dist/operations.d.ts.map +1 -0
- package/dist/operations.js +14 -0
- package/dist/operations.js.map +1 -0
- package/package.json +48 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @puppi/adapter-stripe
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Source connector for the Stripe Customers API. `customers()` walks `GET /v1/customers`. `cursor` is the last customer id from the previous page, sent back as `starting_after`. The last page yields a null cursor.
|
|
4
|
+
|
|
5
|
+
Auth is a bearer key. Secret `api_key` is that key. `api_version` defaults to `2024-06-20` and is sent as `stripe-version`. `base_url` defaults to `https://api.stripe.com`. `check()` calls `GET /v1/customers?limit=1`.
|
|
6
|
+
|
|
7
|
+
```json
|
|
8
|
+
{
|
|
9
|
+
"stripe": {
|
|
10
|
+
"config": {},
|
|
11
|
+
"secret_refs": { "api_key": "stripe_key" }
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
client.customers();
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
Reference: <https://docs.stripe.com/api/customers/list>
|
package/dist/define.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
readonly type: "stripe";
|
|
3
|
+
readonly docs: "https://docs.stripe.com/api/customers/list";
|
|
4
|
+
readonly configSchema: {
|
|
5
|
+
readonly base_url: "string";
|
|
6
|
+
readonly api_version: "string";
|
|
7
|
+
};
|
|
8
|
+
readonly secretFields: readonly ["api_key"];
|
|
9
|
+
readonly auth: {
|
|
10
|
+
readonly scheme: "bearer";
|
|
11
|
+
readonly secret: "api_key";
|
|
12
|
+
};
|
|
13
|
+
readonly apiVersions: readonly ["2024-06-20"];
|
|
14
|
+
readonly defaultApiVersion: "2024-06-20";
|
|
15
|
+
readonly defaultBaseUrl: "https://api.stripe.com";
|
|
16
|
+
};
|
|
17
|
+
export default _default;
|
|
18
|
+
//# sourceMappingURL=define.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.d.ts","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAEA,wBASG"}
|
package/dist/define.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { defineConnector } from "@puppi/sdk";
|
|
2
|
+
export default defineConnector({
|
|
3
|
+
type: "stripe",
|
|
4
|
+
docs: "https://docs.stripe.com/api/customers/list",
|
|
5
|
+
configSchema: { base_url: "string", api_version: "string" },
|
|
6
|
+
secretFields: ["api_key"],
|
|
7
|
+
auth: { scheme: "bearer", secret: "api_key" },
|
|
8
|
+
apiVersions: ["2024-06-20"],
|
|
9
|
+
defaultApiVersion: "2024-06-20",
|
|
10
|
+
defaultBaseUrl: "https://api.stripe.com",
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=define.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"define.js","sourceRoot":"","sources":["../src/define.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,eAAe,eAAe,CAAC;IAC7B,IAAI,EAAE,QAAQ;IACd,IAAI,EAAE,4CAA4C;IAClD,YAAY,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE;IAC3D,YAAY,EAAE,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAC7C,WAAW,EAAE,CAAC,YAAY,CAAC;IAC3B,iBAAiB,EAAE,YAAY;IAC/B,cAAc,EAAE,wBAAwB;CACzC,CAAC,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@puppi/adapter-stripe`: a source connector over the Stripe API.
|
|
3
|
+
* Auth is a bearer key. The API version is pinned by `define.ts` and may
|
|
4
|
+
* be overridden with `api_version` on the binding. `customers()` walks the
|
|
5
|
+
* list.
|
|
6
|
+
*/
|
|
7
|
+
import { type CredentialCheck, type ClientOptions, OpenApiClient, type PageArgs } from "@puppi/sdk";
|
|
8
|
+
import connector from "./define.js";
|
|
9
|
+
import type { SchemaCustomer as Customer } from "./openapi.js";
|
|
10
|
+
import { type Api } from "./operations.js";
|
|
11
|
+
export type { Customer };
|
|
12
|
+
export default connector;
|
|
13
|
+
export declare class Client extends OpenApiClient<Api> {
|
|
14
|
+
constructor(config: Record<string, unknown>, secrets?: Record<string, string>, options?: ClientOptions);
|
|
15
|
+
/** `GET /v1/customers?limit=1` proves `api_key`. */
|
|
16
|
+
check(): Promise<CredentialCheck>;
|
|
17
|
+
/**
|
|
18
|
+
* Every page of customers. `cursor` is the last customer id from the
|
|
19
|
+
* previous page. The last page yields a null cursor.
|
|
20
|
+
*/
|
|
21
|
+
customers(args?: {
|
|
22
|
+
limit?: number;
|
|
23
|
+
cursor?: PageArgs["cursor"];
|
|
24
|
+
}): AsyncGenerator<import("@puppi/sdk").Page<{
|
|
25
|
+
id: string;
|
|
26
|
+
object: "customer";
|
|
27
|
+
email?: string | null;
|
|
28
|
+
name?: string | null;
|
|
29
|
+
created: number;
|
|
30
|
+
currency?: string | null;
|
|
31
|
+
delinquent?: boolean | null;
|
|
32
|
+
livemode: boolean;
|
|
33
|
+
} & {
|
|
34
|
+
[key: string]: unknown;
|
|
35
|
+
}, string | number>, any, any>;
|
|
36
|
+
}
|
|
37
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,aAAa,EAEb,KAAK,QAAQ,EACd,MAAM,YAAY,CAAC;AAEpB,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,KAAK,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,KAAK,GAAG,EAAc,MAAM,iBAAiB,CAAC;AAEvD,YAAY,EAAE,QAAQ,EAAE,CAAC;AAEzB,eAAe,SAAS,CAAC;AAIzB,qBAAa,MAAO,SAAQ,aAAa,CAAC,GAAG,CAAC;gBAE1C,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAM,EACpC,OAAO,GAAE,aAAkB;IAW7B,oDAAoD;IAC3C,KAAK,IAAI,OAAO,CAAC,eAAe,CAAC;IAI1C;;;OAGG;IAEH,SAAS,CAAC,IAAI,GAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,QAAQ,CAAC,QAAQ,CAAC,CAAA;KAAO;;;;;;;;;;;;CAWrE"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@puppi/adapter-stripe`: a source connector over the Stripe API.
|
|
3
|
+
* Auth is a bearer key. The API version is pinned by `define.ts` and may
|
|
4
|
+
* be overridden with `api_version` on the binding. `customers()` walks the
|
|
5
|
+
* list.
|
|
6
|
+
*/
|
|
7
|
+
var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
|
|
8
|
+
var useValue = arguments.length > 2;
|
|
9
|
+
for (var i = 0; i < initializers.length; i++) {
|
|
10
|
+
value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
11
|
+
}
|
|
12
|
+
return useValue ? value : void 0;
|
|
13
|
+
};
|
|
14
|
+
var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
15
|
+
function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
|
|
16
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
17
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
18
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
19
|
+
var _, done = false;
|
|
20
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
21
|
+
var context = {};
|
|
22
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
23
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
24
|
+
context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
|
|
25
|
+
var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
|
|
26
|
+
if (kind === "accessor") {
|
|
27
|
+
if (result === void 0) continue;
|
|
28
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
29
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
30
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
31
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
32
|
+
}
|
|
33
|
+
else if (_ = accept(result)) {
|
|
34
|
+
if (kind === "field") initializers.unshift(_);
|
|
35
|
+
else descriptor[key] = _;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
39
|
+
done = true;
|
|
40
|
+
};
|
|
41
|
+
import { read, OpenApiClient, openApiClientOptions, } from "@puppi/sdk";
|
|
42
|
+
import connector from "./define.js";
|
|
43
|
+
import { operations } from "./operations.js";
|
|
44
|
+
export default connector;
|
|
45
|
+
const auth = connector.auth;
|
|
46
|
+
let Client = (() => {
|
|
47
|
+
let _classSuper = OpenApiClient;
|
|
48
|
+
let _instanceExtraInitializers = [];
|
|
49
|
+
let _customers_decorators;
|
|
50
|
+
return class Client extends _classSuper {
|
|
51
|
+
static {
|
|
52
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
|
|
53
|
+
_customers_decorators = [read];
|
|
54
|
+
__esDecorate(this, null, _customers_decorators, { kind: "method", name: "customers", static: false, private: false, access: { has: obj => "customers" in obj, get: obj => obj.customers }, metadata: _metadata }, null, _instanceExtraInitializers);
|
|
55
|
+
if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
|
|
56
|
+
}
|
|
57
|
+
constructor(config, secrets = {}, options = {}) {
|
|
58
|
+
super(config, options, ...openApiClientOptions(connector, config, secrets, operations, {
|
|
59
|
+
headers: (version) => ({ "stripe-version": version }),
|
|
60
|
+
}));
|
|
61
|
+
__runInitializers(this, _instanceExtraInitializers);
|
|
62
|
+
}
|
|
63
|
+
/** `GET /v1/customers?limit=1` proves `api_key`. */
|
|
64
|
+
check() {
|
|
65
|
+
return this.prove("/v1/customers?limit=1", auth.secret);
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Every page of customers. `cursor` is the last customer id from the
|
|
69
|
+
* previous page. The last page yields a null cursor.
|
|
70
|
+
*/
|
|
71
|
+
customers(args = {}) {
|
|
72
|
+
return this.pages("GetCustomers", {
|
|
73
|
+
rows: "data",
|
|
74
|
+
next: { last: "id", while: "has_more" },
|
|
75
|
+
param: "starting_after",
|
|
76
|
+
}, { cursor: args.cursor, query: { limit: args.limit } });
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
})();
|
|
80
|
+
export { Client };
|
|
81
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,OAAO,EACL,IAAI,EAGJ,aAAa,EACb,oBAAoB,GAErB,MAAM,YAAY,CAAC;AAEpB,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAY,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIvD,eAAe,SAAS,CAAC;AAEzB,MAAM,IAAI,GAAG,SAAS,CAAC,IAAI,CAAC;IAEf,MAAM;sBAAS,aAAa;;;iBAA5B,MAAO,SAAQ,WAAkB;;;qCAwB3C,IAAI;YACL,8KAAA,SAAS,6DAUR;;;QAlCD,YACE,MAA+B,EAC/B,UAAkC,EAAE,EACpC,UAAyB,EAAE;YAE3B,KAAK,CACH,MAAM,EACN,OAAO,EACP,GAAG,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE;gBAC9D,OAAO,EAAE,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,EAAE,gBAAgB,EAAE,OAAO,EAAE,CAAC;aACtD,CAAC,CACH,CAAC;YAZO,mDAAM;SAahB;QAED,oDAAoD;QAC3C,KAAK;YACZ,OAAO,IAAI,CAAC,KAAK,CAAC,uBAAuB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;QAC1D,CAAC;QAED;;;WAGG;QAEH,SAAS,CAAC,OAAwD,EAAE;YAClE,OAAO,IAAI,CAAC,KAAK,CACf,cAAc,EACd;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAE,UAAU,EAAE;gBACvC,KAAK,EAAE,gBAAgB;aACxB,EACD,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,CACtD,CAAC;QACJ,CAAC;;;SAnCU,MAAM"}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was auto-generated by openapi-typescript.
|
|
3
|
+
* Do not make direct changes to the file.
|
|
4
|
+
*/
|
|
5
|
+
export type paths = {
|
|
6
|
+
"/v1/customers": {
|
|
7
|
+
parameters: {
|
|
8
|
+
query?: never;
|
|
9
|
+
header?: never;
|
|
10
|
+
path?: never;
|
|
11
|
+
cookie?: never;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* List all customers
|
|
15
|
+
* @description <p>Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.</p>
|
|
16
|
+
*/
|
|
17
|
+
get: operations["GetCustomers"];
|
|
18
|
+
put?: never;
|
|
19
|
+
post?: never;
|
|
20
|
+
delete?: never;
|
|
21
|
+
options?: never;
|
|
22
|
+
head?: never;
|
|
23
|
+
patch?: never;
|
|
24
|
+
trace?: never;
|
|
25
|
+
};
|
|
26
|
+
"/v1/customers/{customer}": {
|
|
27
|
+
parameters: {
|
|
28
|
+
query?: never;
|
|
29
|
+
header?: never;
|
|
30
|
+
path?: never;
|
|
31
|
+
cookie?: never;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Retrieve a customer
|
|
35
|
+
* @description <p>Retrieves a Customer object.</p>
|
|
36
|
+
*/
|
|
37
|
+
get: operations["GetCustomersCustomer"];
|
|
38
|
+
put?: never;
|
|
39
|
+
post?: never;
|
|
40
|
+
delete?: never;
|
|
41
|
+
options?: never;
|
|
42
|
+
head?: never;
|
|
43
|
+
patch?: never;
|
|
44
|
+
trace?: never;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
export type webhooks = Record<string, never>;
|
|
48
|
+
export type components = {
|
|
49
|
+
schemas: {
|
|
50
|
+
/**
|
|
51
|
+
* @description This object represents a customer of your business. Use it to [create recurring charges](https://docs.stripe.com/invoicing/customer), [save payment](https://docs.stripe.com/payments/save-during-payment) and contact information,
|
|
52
|
+
* and track payments that belong to the same customer.
|
|
53
|
+
*/
|
|
54
|
+
customer: {
|
|
55
|
+
/** @description Unique identifier for the object. */
|
|
56
|
+
id: string;
|
|
57
|
+
/**
|
|
58
|
+
* @description String representing the object's type. Objects of the same type share the same value.
|
|
59
|
+
* @enum {string}
|
|
60
|
+
*/
|
|
61
|
+
object: "customer";
|
|
62
|
+
/** @description The customer's email address. */
|
|
63
|
+
email?: string | null;
|
|
64
|
+
/** @description The customer's full name or business name. */
|
|
65
|
+
name?: string | null;
|
|
66
|
+
/**
|
|
67
|
+
* Format: unix-time
|
|
68
|
+
* @description Time at which the object was created. Measured in seconds since the Unix epoch.
|
|
69
|
+
*/
|
|
70
|
+
created: number;
|
|
71
|
+
/** @description Three-letter [ISO code for the currency](https://stripe.com/docs/currencies) the customer can be charged in for recurring billing purposes. */
|
|
72
|
+
currency?: string | null;
|
|
73
|
+
/**
|
|
74
|
+
* @description Tracks the most recent state change on any invoice belonging to the customer. Paying an invoice or marking it uncollectible via the API will set this field to false. An automatic payment failure or passing the `invoice.due_date` will set this field to `true`.
|
|
75
|
+
*
|
|
76
|
+
* If an invoice becomes uncollectible by [dunning](https://docs.stripe.com/billing/automatic-collection), `delinquent` doesn't reset to `false`.
|
|
77
|
+
*
|
|
78
|
+
* If you care whether the customer has paid their most recent subscription invoice, use `subscription.status` instead. Paying or marking uncollectible any customer invoice regardless of whether it is the latest invoice for a subscription will always set this field to `false`.
|
|
79
|
+
*/
|
|
80
|
+
delinquent?: boolean | null;
|
|
81
|
+
/** @description If the object exists in live mode, the value is `true`. If the object exists in test mode, the value is `false`. */
|
|
82
|
+
livemode: boolean;
|
|
83
|
+
} & {
|
|
84
|
+
[key: string]: unknown;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
responses: never;
|
|
88
|
+
parameters: never;
|
|
89
|
+
requestBodies: never;
|
|
90
|
+
headers: never;
|
|
91
|
+
pathItems: never;
|
|
92
|
+
};
|
|
93
|
+
export type SchemaCustomer = components["schemas"]["customer"];
|
|
94
|
+
export type $defs = Record<string, never>;
|
|
95
|
+
export interface operations {
|
|
96
|
+
GetCustomers: {
|
|
97
|
+
parameters: {
|
|
98
|
+
query?: {
|
|
99
|
+
/** @description A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list. */
|
|
100
|
+
ending_before?: string;
|
|
101
|
+
/** @description A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10. */
|
|
102
|
+
limit?: number;
|
|
103
|
+
/** @description A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list. */
|
|
104
|
+
starting_after?: string;
|
|
105
|
+
};
|
|
106
|
+
header?: never;
|
|
107
|
+
path?: never;
|
|
108
|
+
cookie?: never;
|
|
109
|
+
};
|
|
110
|
+
requestBody?: never;
|
|
111
|
+
responses: {
|
|
112
|
+
/** @description Successful response. */
|
|
113
|
+
200: {
|
|
114
|
+
headers: {
|
|
115
|
+
[name: string]: unknown;
|
|
116
|
+
};
|
|
117
|
+
content: {
|
|
118
|
+
"application/json": {
|
|
119
|
+
data: components["schemas"]["customer"][];
|
|
120
|
+
/** @description True if this list has another page of items after this one that can be fetched. */
|
|
121
|
+
has_more: boolean;
|
|
122
|
+
/**
|
|
123
|
+
* @description String representing the object's type. Objects of the same type share the same value. Always has the value `list`.
|
|
124
|
+
* @enum {string}
|
|
125
|
+
*/
|
|
126
|
+
object: "list";
|
|
127
|
+
/** @description The URL where this list can be accessed. */
|
|
128
|
+
url: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
};
|
|
134
|
+
GetCustomersCustomer: {
|
|
135
|
+
parameters: {
|
|
136
|
+
query?: never;
|
|
137
|
+
header?: never;
|
|
138
|
+
path: {
|
|
139
|
+
customer: string;
|
|
140
|
+
};
|
|
141
|
+
cookie?: never;
|
|
142
|
+
};
|
|
143
|
+
requestBody?: never;
|
|
144
|
+
responses: {
|
|
145
|
+
/** @description Successful response. */
|
|
146
|
+
200: {
|
|
147
|
+
headers: {
|
|
148
|
+
[name: string]: unknown;
|
|
149
|
+
};
|
|
150
|
+
content: {
|
|
151
|
+
"application/json": components["schemas"]["customer"];
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
//# sourceMappingURL=openapi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.d.ts","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"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"}
|
package/dist/openapi.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openapi.js","sourceRoot":"","sources":["../src/openapi.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Generated from openapi.json. Do not edit. */
|
|
2
|
+
import type { BodyOf, Operation } from "@puppi/sdk";
|
|
3
|
+
import type { operations as spec } from "./openapi.js";
|
|
4
|
+
export type Api = {
|
|
5
|
+
responses: {
|
|
6
|
+
GetCustomers: BodyOf<spec["GetCustomers"]>;
|
|
7
|
+
GetCustomersCustomer: BodyOf<spec["GetCustomersCustomer"]>;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare const operations: Record<keyof Api["responses"], Operation>;
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAEhD,OAAO,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEpD,OAAO,KAAK,EAAE,UAAU,IAAI,IAAI,EAAE,MAAM,cAAc,CAAC;AAEvD,MAAM,MAAM,GAAG,GAAG;IAChB,SAAS,EAAE;QACT,YAAY,EAAE,MAAM,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC;QAC3C,oBAAoB,EAAE,MAAM,CAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC,CAAC;KAC5D,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,GAAG,CAAC,WAAW,CAAC,EAAE,SAAS,CAWhE,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Generated from openapi.json. Do not edit. */
|
|
2
|
+
export const operations = {
|
|
3
|
+
GetCustomers: {
|
|
4
|
+
method: "get",
|
|
5
|
+
path: "/v1/customers",
|
|
6
|
+
query: ["ending_before", "limit", "starting_after"],
|
|
7
|
+
},
|
|
8
|
+
GetCustomersCustomer: {
|
|
9
|
+
method: "get",
|
|
10
|
+
path: "/v1/customers/{customer}",
|
|
11
|
+
query: [],
|
|
12
|
+
},
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../src/operations.ts"],"names":[],"mappings":"AAAA,gDAAgD;AAahD,MAAM,CAAC,MAAM,UAAU,GAA8C;IACnE,YAAY,EAAE;QACZ,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,eAAe;QACrB,KAAK,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,gBAAgB,CAAC;KACpD;IACD,oBAAoB,EAAE;QACpB,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,0BAA0B;QAChC,KAAK,EAAE,EAAE;KACV;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,51 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@puppi/adapter-stripe",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.1.1",
|
|
4
|
+
"description": "Source connector for the Stripe Customers API: bearer auth, pinned API version, cursor pages.",
|
|
5
|
+
"homepage": "https://github.com/DashJump/puppi",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/DashJump/puppi/issues"
|
|
8
|
+
},
|
|
9
|
+
"license": "Apache-2.0",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "git+https://github.com/DashJump/puppi.git",
|
|
13
|
+
"directory": "connectors/stripe"
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"type": "module",
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"types": "./dist/index.d.ts",
|
|
25
|
+
"default": "./dist/index.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@puppi/sdk": "0.4.0"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@puppi/conformance": "0.1.0",
|
|
36
|
+
"@types/node": "^26.6.5",
|
|
37
|
+
"openapi-sampler": "1.7.4",
|
|
38
|
+
"openapi-typescript": "7.13.0",
|
|
39
|
+
"typescript": "^5.6.3",
|
|
40
|
+
"vite-plus": "1.7.0"
|
|
41
|
+
},
|
|
42
|
+
"engines": {
|
|
43
|
+
"node": ">=26"
|
|
44
|
+
},
|
|
45
|
+
"scripts": {
|
|
46
|
+
"generate": "openapi-typescript openapi.json -o src/openapi.ts --export-type --root-types --empty-objects-unknown --default-non-nullable=false && puppi-write-operations openapi.json src/operations.ts && vp fmt --write src/openapi.ts src/operations.ts",
|
|
47
|
+
"build": "tsc -p tsconfig.json",
|
|
48
|
+
"typecheck": "tsc -p tsconfig.json --noEmit && tsc -p test/tsconfig.json",
|
|
49
|
+
"test": "vp test run --config ../../vite.config.ts"
|
|
50
|
+
}
|
|
6
51
|
}
|