@flink-app/s3-plugin 0.3.5 → 0.3.7
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 +21 -0
- package/package.json +3 -3
- package/.flink/generated-schemas.json +0 -311
- package/.flink/generatedHandlers.ts +0 -7
- package/.flink/generatedRepos.ts +0 -5
- package/.flink/schemas/schemas.json +0 -5
- package/.flink/schemas/schemas.ts +0 -1
- package/.flink/start.ts +0 -4
- package/dist/.flink/generatedHandlers.d.ts +0 -1
- package/dist/.flink/generatedHandlers.js +0 -7
- package/dist/.flink/generatedRepos.d.ts +0 -1
- package/dist/.flink/generatedRepos.js +0 -7
- package/dist/.flink/schemas/schemas.d.ts +0 -0
- package/dist/.flink/schemas/schemas.js +0 -2
- package/dist/.flink/schemas/schemas.json +0 -5
- package/dist/.flink/start.d.ts +0 -3
- package/dist/.flink/start.js +0 -6
- package/dist/src/Ctx.d.ts +0 -19
- package/dist/src/Ctx.js +0 -2
- package/dist/src/handlers/HandlebarsTemplateHandler.d.ts +0 -5
- package/dist/src/handlers/HandlebarsTemplateHandler.js +0 -63
- package/dist/src/handlers/Management/Get.d.ts +0 -7
- package/dist/src/handlers/Management/Get.js +0 -53
- package/dist/src/handlers/Management/GetManagement.d.ts +0 -8
- package/dist/src/handlers/Management/GetManagement.js +0 -53
- package/dist/src/handlers/User/DeleteByUserid.d.ts +0 -9
- package/dist/src/handlers/User/DeleteByUserid.js +0 -70
- package/dist/src/handlers/User/GetByUserid.d.ts +0 -9
- package/dist/src/handlers/User/GetByUserid.js +0 -71
- package/dist/src/handlers/User/GetList.d.ts +0 -9
- package/dist/src/handlers/User/GetList.js +0 -64
- package/dist/src/handlers/User/GetMe.d.ts +0 -8
- package/dist/src/handlers/User/GetMe.js +0 -81
- package/dist/src/handlers/User/Post.d.ts +0 -10
- package/dist/src/handlers/User/Post.js +0 -87
- package/dist/src/handlers/User/PostLogin.d.ts +0 -10
- package/dist/src/handlers/User/PostLogin.js +0 -86
- package/dist/src/handlers/User/PutByUserid.d.ts +0 -9
- package/dist/src/handlers/User/PutByUserid.js +0 -97
- package/dist/src/index.d.ts +0 -4
- package/dist/src/index.js +0 -380
- package/dist/src/lib/customer.d.ts +0 -6
- package/dist/src/lib/customer.js +0 -121
- package/dist/src/lib/payment.d.ts +0 -6
- package/dist/src/lib/payment.js +0 -113
- package/dist/src/managementApiContext.d.ts +0 -7
- package/dist/src/managementApiContext.js +0 -2
- package/dist/src/models/ManagementApi.d.ts +0 -28
- package/dist/src/models/ManagementApi.js +0 -8
- package/dist/src/repos/ConnectSessionRepo.d.ts +0 -5
- package/dist/src/repos/ConnectSessionRepo.js +0 -26
- package/dist/src/repos/ManagementUserRepo.d.ts +0 -5
- package/dist/src/repos/ManagementUserRepo.js +0 -26
- package/dist/src/reposx/ConnectSessionRepo.d.ts +0 -5
- package/dist/src/reposx/ConnectSessionRepo.js +0 -26
- package/dist/src/schemas/ConnectSession.d.ts +0 -4
- package/dist/src/schemas/ConnectSession.js +0 -2
- package/dist/src/schemas/Management/GetReq.d.ts +0 -2
- package/dist/src/schemas/Management/GetReq.js +0 -2
- package/dist/src/schemas/Management/GetRes.d.ts +0 -3
- package/dist/src/schemas/Management/GetRes.js +0 -2
- package/dist/src/schemas/ManagementUser.d.ts +0 -6
- package/dist/src/schemas/ManagementUser.js +0 -2
- package/dist/src/schemas/ManagementUserViewModel.d.ts +0 -4
- package/dist/src/schemas/ManagementUserViewModel.js +0 -19
- package/dist/src/schemas/ModuleList.d.ts +0 -18
- package/dist/src/schemas/ModuleList.js +0 -2
- package/dist/src/schemas/User/DeleteByUseridReq.d.ts +0 -2
- package/dist/src/schemas/User/DeleteByUseridReq.js +0 -2
- package/dist/src/schemas/User/DeleteByUseridRes.d.ts +0 -2
- package/dist/src/schemas/User/DeleteByUseridRes.js +0 -2
- package/dist/src/schemas/User/GetByUseridReq.d.ts +0 -2
- package/dist/src/schemas/User/GetByUseridReq.js +0 -2
- package/dist/src/schemas/User/GetByUseridRes.d.ts +0 -3
- package/dist/src/schemas/User/GetByUseridRes.js +0 -2
- package/dist/src/schemas/User/GetListReq.d.ts +0 -2
- package/dist/src/schemas/User/GetListReq.js +0 -2
- package/dist/src/schemas/User/GetListRes.d.ts +0 -4
- package/dist/src/schemas/User/GetListRes.js +0 -2
- package/dist/src/schemas/User/GetMeReq.d.ts +0 -2
- package/dist/src/schemas/User/GetMeReq.js +0 -2
- package/dist/src/schemas/User/GetMeRes.d.ts +0 -3
- package/dist/src/schemas/User/GetMeRes.js +0 -2
- package/dist/src/schemas/User/PostLoginReq.d.ts +0 -4
- package/dist/src/schemas/User/PostLoginReq.js +0 -2
- package/dist/src/schemas/User/PostLoginRes.d.ts +0 -5
- package/dist/src/schemas/User/PostLoginRes.js +0 -2
- package/dist/src/schemas/User/PostReq.d.ts +0 -3
- package/dist/src/schemas/User/PostReq.js +0 -2
- package/dist/src/schemas/User/PostRes.d.ts +0 -3
- package/dist/src/schemas/User/PostRes.js +0 -2
- package/dist/src/schemas/User/PutByUseridReq.d.ts +0 -3
- package/dist/src/schemas/User/PutByUseridReq.js +0 -2
- package/dist/src/schemas/User/PutByUseridRes.d.ts +0 -3
- package/dist/src/schemas/User/PutByUseridRes.js +0 -2
- package/dist/src/schemas/createStripeCustomerOptions.d.ts +0 -11
- package/dist/src/schemas/createStripeCustomerOptions.js +0 -2
- package/dist/src/schemas/customer/connectToStripeConnectOptions.d.ts +0 -3
- package/dist/src/schemas/customer/connectToStripeConnectOptions.js +0 -2
- package/dist/src/schemas/customer/hasPaymentMethodOptions.d.ts +0 -3
- package/dist/src/schemas/customer/hasPaymentMethodOptions.js +0 -2
- package/dist/src/schemas/customer/setupCardOptions.d.ts +0 -3
- package/dist/src/schemas/customer/setupCardOptions.js +0 -2
- package/dist/src/schemas/customer/setupCardResponse.d.ts +0 -4
- package/dist/src/schemas/customer/setupCardResponse.js +0 -2
- package/dist/src/schemas/customer/setupCardTokenOptions.d.ts +0 -4
- package/dist/src/schemas/customer/setupCardTokenOptions.js +0 -2
- package/dist/src/schemas/payment/capturePaymentOptions.d.ts +0 -4
- package/dist/src/schemas/payment/capturePaymentOptions.js +0 -2
- package/dist/src/schemas/payment/confirmPaymentOptions.d.ts +0 -4
- package/dist/src/schemas/payment/confirmPaymentOptions.js +0 -2
- package/dist/src/schemas/payment/confirmPaymentResponse.d.ts +0 -7
- package/dist/src/schemas/payment/confirmPaymentResponse.js +0 -2
- package/dist/src/schemas/payment/confirmPaymentTokenOptions.d.ts +0 -4
- package/dist/src/schemas/payment/confirmPaymentTokenOptions.js +0 -2
- package/dist/src/schemas/payment/createPaymentResponse.d.ts +0 -5
- package/dist/src/schemas/payment/createPaymentResponse.js +0 -2
- package/dist/src/schemas/stripeAPIToken.d.ts +0 -4
- package/dist/src/schemas/stripeAPIToken.js +0 -2
- package/dist/src/schemas/stripePluginOptions.d.ts +0 -31
- package/dist/src/schemas/stripePluginOptions.js +0 -2
- package/dist/src/stripeAPI.d.ts +0 -32
- package/dist/src/stripeAPI.js +0 -163
- package/dist/src/stripePlguinContext.d.ts +0 -5
- package/dist/src/stripePlguinContext.js +0 -2
- package/dist/src/stripePluginContext.d.ts +0 -6
- package/dist/src/stripePluginContext.js +0 -2
- package/dist/src/templates/connect-done.d.ts +0 -1
- package/dist/src/templates/connect-done.js +0 -4
- package/dist/src/templates/error.d.ts +0 -1
- package/dist/src/templates/error.js +0 -4
- package/dist/src/templates/master.d.ts +0 -1
- package/dist/src/templates/master.js +0 -4
- package/dist/src/templates/pay-enter-card.d.ts +0 -1
- package/dist/src/templates/pay-enter-card.js +0 -4
- package/dist/src/templates/pay-select-card.d.ts +0 -1
- package/dist/src/templates/pay-select-card.js +0 -4
- package/dist/src/templates/setup-card.d.ts +0 -1
- package/dist/src/templates/setup-card.js +0 -4
- package/dist/src/templates/setup-done.d.ts +0 -1
- package/dist/src/templates/setup-done.js +0 -4
- package/dist/src/templates/style.d.ts +0 -1
- package/dist/src/templates/style.js +0 -4
- package/dist/src/utils/bcrypt.d.ts +0 -2
- package/dist/src/utils/bcrypt.js +0 -28
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { HandlerFile, RouteProps } from "@flink-app/flink";
|
|
2
|
-
export interface ManagementApiModule {
|
|
3
|
-
id: string;
|
|
4
|
-
type: ManagementApiType;
|
|
5
|
-
endpoints: {
|
|
6
|
-
handler: HandlerFile;
|
|
7
|
-
routeProps: Partial<RouteProps>;
|
|
8
|
-
}[];
|
|
9
|
-
ui: boolean;
|
|
10
|
-
uiSettings?: {
|
|
11
|
-
title: string;
|
|
12
|
-
icon: string;
|
|
13
|
-
features: string[];
|
|
14
|
-
};
|
|
15
|
-
data: {
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
export interface ManagementApiOptions {
|
|
20
|
-
token: string;
|
|
21
|
-
baseUrl?: string;
|
|
22
|
-
jwtSecret: string;
|
|
23
|
-
modules: ManagementApiModule[];
|
|
24
|
-
}
|
|
25
|
-
export declare enum ManagementApiType {
|
|
26
|
-
user = "USER",
|
|
27
|
-
managementUser = "MANAGEMENT_USER"
|
|
28
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ManagementApiType = void 0;
|
|
4
|
-
var ManagementApiType;
|
|
5
|
-
(function (ManagementApiType) {
|
|
6
|
-
ManagementApiType["user"] = "USER";
|
|
7
|
-
ManagementApiType["managementUser"] = "MANAGEMENT_USER";
|
|
8
|
-
})(ManagementApiType = exports.ManagementApiType || (exports.ManagementApiType = {}));
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var flink_1 = require("@flink-app/flink");
|
|
19
|
-
var ConnectSessionRepo = /** @class */ (function (_super) {
|
|
20
|
-
__extends(ConnectSessionRepo, _super);
|
|
21
|
-
function ConnectSessionRepo() {
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
24
|
-
return ConnectSessionRepo;
|
|
25
|
-
}(flink_1.FlinkRepo));
|
|
26
|
-
exports.default = ConnectSessionRepo;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var flink_1 = require("@flink-app/flink");
|
|
19
|
-
var ManagementUserRepo = /** @class */ (function (_super) {
|
|
20
|
-
__extends(ManagementUserRepo, _super);
|
|
21
|
-
function ManagementUserRepo() {
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
24
|
-
return ManagementUserRepo;
|
|
25
|
-
}(flink_1.FlinkRepo));
|
|
26
|
-
exports.default = ManagementUserRepo;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
var flink_1 = require("@flink-app/flink");
|
|
19
|
-
var ConnectSessionRepo = /** @class */ (function (_super) {
|
|
20
|
-
__extends(ConnectSessionRepo, _super);
|
|
21
|
-
function ConnectSessionRepo() {
|
|
22
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
23
|
-
}
|
|
24
|
-
return ConnectSessionRepo;
|
|
25
|
-
}(flink_1.FlinkRepo));
|
|
26
|
-
exports.default = ConnectSessionRepo;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
-
var t = {};
|
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
-
t[p] = s[p];
|
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
-
t[p[i]] = s[p[i]];
|
|
10
|
-
}
|
|
11
|
-
return t;
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.GetManagementUserViewModel = void 0;
|
|
15
|
-
var GetManagementUserViewModel = function (user) {
|
|
16
|
-
var password = user.password, salt = user.salt, resp = __rest(user, ["password", "salt"]);
|
|
17
|
-
return resp;
|
|
18
|
-
};
|
|
19
|
-
exports.GetManagementUserViewModel = GetManagementUserViewModel;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export interface ModuleList {
|
|
2
|
-
modules: Module[];
|
|
3
|
-
}
|
|
4
|
-
export interface Module {
|
|
5
|
-
id: string;
|
|
6
|
-
type: string;
|
|
7
|
-
features: string[];
|
|
8
|
-
title: string;
|
|
9
|
-
ui: string;
|
|
10
|
-
data: {
|
|
11
|
-
[key: string]: any;
|
|
12
|
-
};
|
|
13
|
-
endpoints: ModuleEndpoint[];
|
|
14
|
-
}
|
|
15
|
-
export interface ModuleEndpoint {
|
|
16
|
-
method: string;
|
|
17
|
-
url: string;
|
|
18
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export interface createStripeCustomerOptions {
|
|
2
|
-
userId: string;
|
|
3
|
-
description?: string;
|
|
4
|
-
email?: string;
|
|
5
|
-
metaData?: createStripeCustomerMetaData;
|
|
6
|
-
name?: string;
|
|
7
|
-
phone?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface createStripeCustomerMetaData {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface stripePluginOptions {
|
|
2
|
-
baseUrl?: string;
|
|
3
|
-
stripeSecreteKey: string;
|
|
4
|
-
stripePublishableKey: string;
|
|
5
|
-
JTW_TOKEN: string;
|
|
6
|
-
logo?: string;
|
|
7
|
-
redirectUrl?: string;
|
|
8
|
-
stripeConnectClientID?: string;
|
|
9
|
-
phrases?: {
|
|
10
|
-
setupDescription?: string;
|
|
11
|
-
setupButtonText?: string;
|
|
12
|
-
setupDoneMessage: string;
|
|
13
|
-
paymentSelectCardPayButtonText?: string;
|
|
14
|
-
paymentSelectCardChangeCardButtonText?: string;
|
|
15
|
-
paymentDoneMessage?: string;
|
|
16
|
-
paymentEnterCardPayButtonText?: string;
|
|
17
|
-
connectDoneMessage: string;
|
|
18
|
-
};
|
|
19
|
-
templates?: {
|
|
20
|
-
master?: string;
|
|
21
|
-
style?: string;
|
|
22
|
-
setupCard?: string;
|
|
23
|
-
setupDone?: string;
|
|
24
|
-
error?: string;
|
|
25
|
-
paySelectCard?: string;
|
|
26
|
-
payEnterCard?: string;
|
|
27
|
-
connectDone?: string;
|
|
28
|
-
};
|
|
29
|
-
paymentCallback?(paymentIntentId: string, status: string): void;
|
|
30
|
-
stripeConnectCallback?(userId: string, stripeConnectUserId: string): void;
|
|
31
|
-
}
|
package/dist/src/stripeAPI.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { Stripe } from "stripe";
|
|
2
|
-
import { hasPaymentMethodOptions } from "./schemas/customer/hasPaymentMethodOptions";
|
|
3
|
-
import { setupCardOptions } from "./schemas/customer/setupCardOptions";
|
|
4
|
-
import { setupCardResponse } from "./schemas/customer/setupCardResponse";
|
|
5
|
-
import { stripePluginOptions } from "./schemas/stripePluginOptions";
|
|
6
|
-
import { confirmPaymentOptions } from "./schemas/payment/confirmPaymentOptions";
|
|
7
|
-
import { confirmPaymentResponse } from "./schemas/payment/confirmPaymentResponse";
|
|
8
|
-
import { createPaymentResponse } from "./schemas/payment/createPaymentResponse";
|
|
9
|
-
import ConnectSessionRepo from "./reposx/ConnectSessionRepo";
|
|
10
|
-
import { connectToStripeConnectOptions } from "./schemas/customer/connectToStripeConnectOptions";
|
|
11
|
-
import { capturePaymentOptions } from "./schemas/payment/capturePaymentOptions";
|
|
12
|
-
export declare class StripeAPI {
|
|
13
|
-
stripe: Stripe;
|
|
14
|
-
pluginOptions: stripePluginOptions;
|
|
15
|
-
repo?: ConnectSessionRepo;
|
|
16
|
-
constructor(options: stripePluginOptions);
|
|
17
|
-
config: {
|
|
18
|
-
setRepo: (repo: ConnectSessionRepo) => void;
|
|
19
|
-
};
|
|
20
|
-
payment: {
|
|
21
|
-
create: (options: Stripe.PaymentIntentCreateParams) => Promise<createPaymentResponse>;
|
|
22
|
-
confirm: (options: confirmPaymentOptions) => Promise<confirmPaymentResponse>;
|
|
23
|
-
createAndConfirm: (options: Stripe.PaymentIntentCreateParams) => Promise<confirmPaymentResponse>;
|
|
24
|
-
capture: (options: capturePaymentOptions) => Promise<boolean>;
|
|
25
|
-
};
|
|
26
|
-
customer: {
|
|
27
|
-
create: (options: Stripe.CustomerCreateParams) => Promise<string>;
|
|
28
|
-
hasPaymentMethod: (options: hasPaymentMethodOptions) => Promise<boolean>;
|
|
29
|
-
setupCard: (options: setupCardOptions) => Promise<setupCardResponse>;
|
|
30
|
-
connectToStripeConnect: (options: connectToStripeConnectOptions) => Promise<string>;
|
|
31
|
-
};
|
|
32
|
-
}
|