Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sport-activities/sdk

Package Overview
Dependencies
Maintainers
6
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sport-activities/sdk - npm Package Compare versions

Comparing version 1.2.2 to 1.2.3

4

package.json
{
"name": "@sport-activities/sdk",
"version": "1.2.2",
"version": "1.2.3",
"description": "",

@@ -12,2 +12,2 @@ "main": "index.js",

"license": "Apache-2.0"
}
}

@@ -1,5 +0,94 @@

// Generated by dts-bundle-generator v6.4.0
// Generated by dts-bundle-generator v9.2.1
import { PaymentProviderStatusEnum, SalesChannelStatusEnum } from '@decathlon-onepartner/sdk';
import { OrganizationPublicationStatusEnum, PaymentProviderStatusEnum, SalesChannelStatusEnum } from '@decathlon-onepartner/sdk';
export declare enum RefundStatusEnum {
IN_REFUND_QUEUE = "IN_REFUND_QUEUE",
PROCESSED = "PROCESSED",
CANCELED = "CANCELED",
ERROR = "ERROR"
}
export declare enum BookingStatus {
REQUIRES_CONFIRMATION = "REQUIRES_CONFIRMATION",
REQUIRES_ACTION = "REQUIRES_ACTION",
COMPLETED = "COMPLETED",
INIT = "INIT",
VALIDATED = "VALIDATED",
FAILED = "FAILED",
RESERVED = "RESERVED"
}
export declare enum PaymentProvider {
STRIPE = "STRIPE",
ONEPAY_STRIPE = "ONEPAY_STRIPE"
}
declare enum PaymentTokenAction {
USE = "USE",
REUSE = "REUSE",
SAVE = "SAVE"
}
export interface MetaInterface {
[key: string]: string | string[] | MetaInterface | MetaInterface[] | number | number[] | boolean;
}
interface BookingStartResponseInterface {
bookingId: string;
paymentIntentId?: string;
paymentIntentClientSecret?: string;
status: string;
}
export interface BookingStartItemRequestInterface {
sku: string;
meta?: MetaInterface;
attendees: {
firstName: string;
lastName: string;
age: number;
offerIdentifier: string;
}[];
}
interface BookingStartRequestInterface {
code?: string;
items: BookingStartItemRequestInterface[];
paymentToken?: {
provider: PaymentProvider;
token: string;
tokenAction: PaymentTokenAction;
};
billingAddress?: {
streetAddress: string;
postalCode: string;
addressLocality: string;
addressCountry: string;
addressRegion?: string;
postOfficeBoxNumber?: string;
};
meta?: MetaInterface;
}
export type Json = string | number | boolean | null | {
[property: string]: Json;
} | Json[];
export interface CreateSessionResponse {
id: string;
amount: number;
currency_code: string;
expiration_date: string;
protocols: {
[key: string]: Json;
};
success: string;
failure: string;
}
export interface BookingInitRequestInterface extends BookingStartRequestInterface {
callback: {
success: string;
failure: string;
};
}
export interface BookingInitResponseInterface {
bookingId: string;
status: BookingStatus;
onePaySession?: CreateSessionResponse;
}
export interface RefundResponseInterface {
status: RefundStatusEnum;
}
export interface PaymentOnboardingBodyInterface {

@@ -36,3 +125,4 @@ redirectUrl?: string | null;

PLAYGROUND_RENT = "PLAYGROUND_RENT",
BIRTHDAY = "BIRTHDAY"
BIRTHDAY = "BIRTHDAY",
PRODUCT_TEST = "PRODUCT_TEST"
}

@@ -56,5 +146,2 @@ export declare enum ActivityVisibilityEnum {

}
export interface MetaInterface {
[key: string]: string | string[] | MetaInterface | MetaInterface[] | number | number[] | boolean;
}
export interface OfferInterface {

@@ -124,3 +211,3 @@ identifier: string;

}
export declare type FileTypeEnum = ActivityFileTypeEnum;
export type FileTypeEnum = ActivityFileTypeEnum;
export declare enum OrganizationFileTypeEnum {

@@ -150,4 +237,4 @@ LOGO = "LOGO"

}
export declare type ActivityFileUploadInterface = FileUploadInterface<ActivityFileTypeEnum>;
export declare type OrganizationFileUploadInterface = FileUploadInterface<OrganizationFileTypeEnum>;
export type ActivityFileUploadInterface = FileUploadInterface<ActivityFileTypeEnum>;
export type OrganizationFileUploadInterface = FileUploadInterface<OrganizationFileTypeEnum>;
export interface ActivityInterface {

@@ -323,11 +410,2 @@ sku: number;

}
export declare enum BookingStatus {
REQUIRES_CONFIRMATION = "REQUIRES_CONFIRMATION",
REQUIRES_ACTION = "REQUIRES_ACTION",
COMPLETED = "COMPLETED",
INIT = "INIT",
VALIDATED = "VALIDATED",
FAILED = "FAILED",
RESERVED = "RESERVED"
}
export interface SubscriptionFilterParamsInterface {

@@ -398,15 +476,15 @@ bookingItemStatus?: BookingItemStatusEnum;

}
export declare type CreateTimeslotBodyInterface = BaseTimeslotBodyInterface & {
export type CreateTimeslotBodyInterface = BaseTimeslotBodyInterface & {
activityIdentifier: string;
};
export declare type CreateBulkTimeslotBodyInterface = BaseTimeslotBodyInterface;
export declare type UpdateTimeslotBodyInterface = Partial<BaseTimeslotBodyInterface>;
export declare type UpdateBulkTimeslotBodyInterface = UpdateTimeslotBodyInterface & {
export type CreateBulkTimeslotBodyInterface = BaseTimeslotBodyInterface;
export type UpdateTimeslotBodyInterface = Partial<BaseTimeslotBodyInterface>;
export type UpdateBulkTimeslotBodyInterface = UpdateTimeslotBodyInterface & {
identifier: string;
};
export declare type IdentifiedTimeslotBodyInterface = Partial<BaseTimeslotBodyInterface> & {
export type IdentifiedTimeslotBodyInterface = Partial<BaseTimeslotBodyInterface> & {
identifier: string;
activityIdentifier: string;
};
export declare type PushedTimeslotBodyInterface = IdentifiedTimeslotBodyInterface & {
export type PushedTimeslotBodyInterface = IdentifiedTimeslotBodyInterface & {
status?: TimeslotStatusEnum;

@@ -421,6 +499,2 @@ tenant: string;

}
export declare enum PaymentProvider {
STRIPE = "STRIPE",
ONEPAY_STRIPE = "ONEPAY_STRIPE"
}
export interface Attendee {

@@ -455,41 +529,2 @@ firstName: string;

}
declare enum PaymentTokenAction {
USE = "USE",
REUSE = "REUSE",
SAVE = "SAVE"
}
interface BookingStartResponseInterface {
bookingId: string;
paymentIntentId?: string;
paymentIntentClientSecret?: string;
status: string;
}
export interface BookingStartItemRequestInterface {
sku: string;
meta?: MetaInterface;
attendees: {
firstName: string;
lastName: string;
age: number;
offerIdentifier: string;
}[];
}
interface BookingStartRequestInterface {
code?: string;
items: BookingStartItemRequestInterface[];
paymentToken?: {
provider: PaymentProvider;
token: string;
tokenAction: PaymentTokenAction;
};
billingAddress?: {
streetAddress: string;
postalCode: string;
addressLocality: string;
addressCountry: string;
addressRegion?: string;
postOfficeBoxNumber?: string;
};
meta?: MetaInterface;
}
export interface BookingTaxEstimateBodyInterface {

@@ -874,3 +909,3 @@ originCountry: string;

}
export declare type CardBrand = "amex" | "diners" | "discover" | "jcb" | "mastercard" | "unionpay" | "visa" | "unknown";
export type CardBrand = "amex" | "diners" | "discover" | "jcb" | "mastercard" | "unionpay" | "visa" | "unknown";
export interface CardProviderResponseInterface {

@@ -893,37 +928,3 @@ brand: CardBrand;

}
export declare type Json = string | number | boolean | null | {
[property: string]: Json;
} | Json[];
export interface CreateSessionResponse {
id: string;
amount: number;
currency_code: string;
expiration_date: string;
protocols: {
[key: string]: Json;
};
success: string;
failure: string;
}
export interface BookingInitRequestInterface extends BookingStartRequestInterface {
callback: {
success: string;
failure: string;
};
}
export interface BookingInitResponseInterface {
bookingId: string;
status: BookingStatus;
onePaySession?: CreateSessionResponse;
}
export declare enum RefundStatusEnum {
IN_REFUND_QUEUE = "IN_REFUND_QUEUE",
PROCESSED = "PROCESSED",
CANCELED = "CANCELED",
ERROR = "ERROR"
}
export interface RefundResponseInterface {
status: RefundStatusEnum;
}
export declare type PersonInterface = UserInterface;
export type PersonInterface = UserInterface;

@@ -934,4 +935,6 @@ export {

BookingTaxesInterface as BookingTaxEstimateInterface,
OrganizationPublicationStatusEnum,
PaymentProviderStatusEnum,
};
export {};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc