New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stamhoofd/structures

Package Overview
Dependencies
Maintainers
1
Versions
293
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stamhoofd/structures - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

dist/src/Address.d.ts

10

dist/index.d.ts
export * from "./src/OrganizationMetaData";
export * from "./src/OrganizationType";
export * from "./src/OrganizationGenderType";
export * from "./src/UmbrellaOrganization";

@@ -9,4 +10,13 @@ export * from "./src/Organization";

export * from "./src/KeyConstants";
export * from "./src/Address";
export * from "./src/CountryDecoder";
export * from "./src/GroupPrices";
export * from "./src/endpoints/CreateOrganization";
export * from "./src/endpoints/tokens/ChallengeGrantStruct";
export * from "./src/endpoints/tokens/ChallengeResponseStruct";
export * from "./src/endpoints/tokens/RefreshTokenGrantStruct";
export * from "./src/endpoints/tokens/RequestChallengeGrantStruct";
export * from "./src/endpoints/tokens/CreateTokenStruct";
export * from "./src/grouping/PaginatedResponse";
export declare const Version = 1;
//# sourceMappingURL=index.d.ts.map

@@ -8,2 +8,3 @@ "use strict";

tslib_1.__exportStar(require("./src/OrganizationType"), exports);
tslib_1.__exportStar(require("./src/OrganizationGenderType"), exports);
tslib_1.__exportStar(require("./src/UmbrellaOrganization"), exports);

@@ -15,6 +16,16 @@ tslib_1.__exportStar(require("./src/Organization"), exports);

tslib_1.__exportStar(require("./src/KeyConstants"), exports);
tslib_1.__exportStar(require("./src/Address"), exports);
tslib_1.__exportStar(require("./src/CountryDecoder"), exports);
tslib_1.__exportStar(require("./src/GroupPrices"), exports);
// Endpoints
tslib_1.__exportStar(require("./src/endpoints/CreateOrganization"), exports);
tslib_1.__exportStar(require("./src/endpoints/tokens/ChallengeGrantStruct"), exports);
tslib_1.__exportStar(require("./src/endpoints/tokens/ChallengeResponseStruct"), exports);
tslib_1.__exportStar(require("./src/endpoints/tokens/RefreshTokenGrantStruct"), exports);
tslib_1.__exportStar(require("./src/endpoints/tokens/RequestChallengeGrantStruct"), exports);
tslib_1.__exportStar(require("./src/endpoints/tokens/CreateTokenStruct"), exports);
// Grouping
tslib_1.__exportStar(require("./src/grouping/PaginatedResponse"), exports);
// Latest version of the structures
exports.Version = 1;
//# sourceMappingURL=index.js.map

2

dist/src/Organization.d.ts
import { AutoEncoder } from '@simonbackx/simple-encoding';
import { Address } from './Address';
import { OrganizationMetaData } from './OrganizationMetaData';

@@ -10,4 +11,5 @@ export declare class Organization extends AutoEncoder {

meta: OrganizationMetaData;
address: Address;
publicKey: string;
}
//# sourceMappingURL=Organization.d.ts.map

@@ -7,2 +7,3 @@ "use strict";

const uuid_1 = require("uuid");
const Address_1 = require("./Address");
const OrganizationMetaData_1 = require("./OrganizationMetaData");

@@ -21,2 +22,5 @@ class Organization extends simple_encoding_1.AutoEncoder {

tslib_1.__decorate([
simple_encoding_1.field({ decoder: Address_1.Address })
], Organization.prototype, "address", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.StringDecoder })

@@ -23,0 +27,0 @@ ], Organization.prototype, "publicKey", void 0);

import { AutoEncoder } from '@simonbackx/simple-encoding';
import { GroupPrices } from './GroupPrices';
import { OrganizationGenderType } from './OrganizationGenderType';
import { OrganizationType } from './OrganizationType';

@@ -7,3 +9,8 @@ import { UmbrellaOrganization } from './UmbrellaOrganization';

umbrellaOrganization: UmbrellaOrganization | null;
expectedMemberCount: number;
genderType: OrganizationGenderType;
defaultStartDate: Date;
defaultEndDate: Date;
defaultPrices: GroupPrices[];
}
//# sourceMappingURL=OrganizationMetaData.d.ts.map

@@ -6,2 +6,4 @@ "use strict";

const simple_encoding_1 = require("@simonbackx/simple-encoding");
const GroupPrices_1 = require("./GroupPrices");
const OrganizationGenderType_1 = require("./OrganizationGenderType");
const OrganizationType_1 = require("./OrganizationType");

@@ -13,2 +15,5 @@ const UmbrellaOrganization_1 = require("./UmbrellaOrganization");

this.umbrellaOrganization = null;
this.expectedMemberCount = 0;
this.genderType = OrganizationGenderType_1.OrganizationGenderType.Mixed;
this.defaultPrices = [];
}

@@ -22,3 +27,18 @@ }

], OrganizationMetaData.prototype, "umbrellaOrganization", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.IntegerDecoder })
], OrganizationMetaData.prototype, "expectedMemberCount", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: new simple_encoding_1.EnumDecoder(OrganizationGenderType_1.OrganizationGenderType) })
], OrganizationMetaData.prototype, "genderType", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.DateDecoder })
], OrganizationMetaData.prototype, "defaultStartDate", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: simple_encoding_1.DateDecoder })
], OrganizationMetaData.prototype, "defaultEndDate", void 0);
tslib_1.__decorate([
simple_encoding_1.field({ decoder: new simple_encoding_1.ArrayDecoder(GroupPrices_1.GroupPrices) })
], OrganizationMetaData.prototype, "defaultPrices", void 0);
exports.OrganizationMetaData = OrganizationMetaData;
//# sourceMappingURL=OrganizationMetaData.js.map

@@ -5,2 +5,13 @@ export declare enum OrganizationType {

Tennis = "Tennis",
Golf = "Golf",
Athletics = "Athletics",
Badminton = "Badminton",
Hockey = "Hockey",
Cycling = "Cycling",
Swimming = "Swimming",
Dance = "Dance",
Volleyball = "Volleyball",
Basketball = "Basketball",
Judo = "Judo",
Sport = "Sport",
Student = "Student",

@@ -7,0 +18,0 @@ Other = "Other"

@@ -9,2 +9,13 @@ "use strict";

OrganizationType["Tennis"] = "Tennis";
OrganizationType["Golf"] = "Golf";
OrganizationType["Athletics"] = "Athletics";
OrganizationType["Badminton"] = "Badminton";
OrganizationType["Hockey"] = "Hockey";
OrganizationType["Cycling"] = "Cycling";
OrganizationType["Swimming"] = "Swimming";
OrganizationType["Dance"] = "Dance";
OrganizationType["Volleyball"] = "Volleyball";
OrganizationType["Basketball"] = "Basketball";
OrganizationType["Judo"] = "Judo";
OrganizationType["Sport"] = "Sport";
OrganizationType["Student"] = "Student";

@@ -11,0 +22,0 @@ OrganizationType["Other"] = "Other";

@@ -17,3 +17,4 @@ import { Data, Encodeable, EncodeContext } from '@simonbackx/simple-encoding';

encode(_context: EncodeContext): any;
needsRefresh(): boolean;
}
//# sourceMappingURL=Token.d.ts.map

5

dist/src/Token.js

@@ -26,8 +26,11 @@ "use strict";

"token_type": "bearer",
"expires_in": (this.accessTokenValidUntil.getTime() - new Date().getTime()) / 1000,
"expires_in": Math.floor((this.accessTokenValidUntil.getTime() - new Date().getTime()) / 1000),
"refresh_token": this.refreshToken,
};
}
needsRefresh() {
return this.accessToken.length == 0 || this.accessTokenValidUntil < new Date();
}
}
exports.Token = Token;
//# sourceMappingURL=Token.js.map
export declare enum UmbrellaOrganization {
ScoutsEnGidsenVlaanderen = "ScoutsEnGidsenVlaanderen",
ChiroNationaal = "ChiroNationaal"
ChiroNationaal = "ChiroNationaal",
Other = "Other"
}
//# sourceMappingURL=UmbrellaOrganization.d.ts.map

@@ -8,3 +8,4 @@ "use strict";

UmbrellaOrganization["ChiroNationaal"] = "ChiroNationaal";
UmbrellaOrganization["Other"] = "Other";
})(UmbrellaOrganization = exports.UmbrellaOrganization || (exports.UmbrellaOrganization = {}));
//# sourceMappingURL=UmbrellaOrganization.js.map
export * from "./src/OrganizationMetaData";
export * from "./src/OrganizationType";
export * from "./src/OrganizationGenderType";
export * from "./src/UmbrellaOrganization";

@@ -9,4 +10,13 @@ export * from "./src/Organization";

export * from "./src/KeyConstants";
export * from "./src/Address";
export * from "./src/CountryDecoder";
export * from "./src/GroupPrices";
export * from "./src/endpoints/CreateOrganization";
export * from "./src/endpoints/tokens/ChallengeGrantStruct";
export * from "./src/endpoints/tokens/ChallengeResponseStruct";
export * from "./src/endpoints/tokens/RefreshTokenGrantStruct";
export * from "./src/endpoints/tokens/RequestChallengeGrantStruct";
export * from "./src/endpoints/tokens/CreateTokenStruct";
export * from "./src/grouping/PaginatedResponse";
export declare const Version = 1;
//# sourceMappingURL=index.d.ts.map
// General
export * from "./src/OrganizationMetaData";
export * from "./src/OrganizationType";
export * from "./src/OrganizationGenderType";
export * from "./src/UmbrellaOrganization";

@@ -10,6 +11,16 @@ export * from "./src/Organization";

export * from "./src/KeyConstants";
export * from "./src/Address";
export * from "./src/CountryDecoder";
export * from "./src/GroupPrices";
// Endpoints
export * from "./src/endpoints/CreateOrganization";
export * from "./src/endpoints/tokens/ChallengeGrantStruct";
export * from "./src/endpoints/tokens/ChallengeResponseStruct";
export * from "./src/endpoints/tokens/RefreshTokenGrantStruct";
export * from "./src/endpoints/tokens/RequestChallengeGrantStruct";
export * from "./src/endpoints/tokens/CreateTokenStruct";
// Grouping
export * from "./src/grouping/PaginatedResponse";
// Latest version of the structures
export const Version = 1;
//# sourceMappingURL=index.js.map
import { AutoEncoder } from '@simonbackx/simple-encoding';
import { Address } from './Address';
import { OrganizationMetaData } from './OrganizationMetaData';

@@ -10,4 +11,5 @@ export declare class Organization extends AutoEncoder {

meta: OrganizationMetaData;
address: Address;
publicKey: string;
}
//# sourceMappingURL=Organization.d.ts.map
import { __decorate } from "tslib";
import { AutoEncoder, field, StringDecoder } from '@simonbackx/simple-encoding';
import { v4 as uuidv4 } from "uuid";
import { Address } from './Address';
import { OrganizationMetaData } from './OrganizationMetaData';

@@ -17,4 +18,7 @@ export class Organization extends AutoEncoder {

__decorate([
field({ decoder: Address })
], Organization.prototype, "address", void 0);
__decorate([
field({ decoder: StringDecoder })
], Organization.prototype, "publicKey", void 0);
//# sourceMappingURL=Organization.js.map
import { AutoEncoder } from '@simonbackx/simple-encoding';
import { GroupPrices } from './GroupPrices';
import { OrganizationGenderType } from './OrganizationGenderType';
import { OrganizationType } from './OrganizationType';

@@ -7,3 +9,8 @@ import { UmbrellaOrganization } from './UmbrellaOrganization';

umbrellaOrganization: UmbrellaOrganization | null;
expectedMemberCount: number;
genderType: OrganizationGenderType;
defaultStartDate: Date;
defaultEndDate: Date;
defaultPrices: GroupPrices[];
}
//# sourceMappingURL=OrganizationMetaData.d.ts.map
import { __decorate } from "tslib";
import { AutoEncoder, EnumDecoder, field } from '@simonbackx/simple-encoding';
import { ArrayDecoder, AutoEncoder, DateDecoder, EnumDecoder, field, IntegerDecoder } from '@simonbackx/simple-encoding';
import { GroupPrices } from './GroupPrices';
import { OrganizationGenderType } from './OrganizationGenderType';
import { OrganizationType } from './OrganizationType';

@@ -9,2 +11,5 @@ import { UmbrellaOrganization } from './UmbrellaOrganization';

this.umbrellaOrganization = null;
this.expectedMemberCount = 0;
this.genderType = OrganizationGenderType.Mixed;
this.defaultPrices = [];
}

@@ -18,2 +23,17 @@ }

], OrganizationMetaData.prototype, "umbrellaOrganization", void 0);
__decorate([
field({ decoder: IntegerDecoder })
], OrganizationMetaData.prototype, "expectedMemberCount", void 0);
__decorate([
field({ decoder: new EnumDecoder(OrganizationGenderType) })
], OrganizationMetaData.prototype, "genderType", void 0);
__decorate([
field({ decoder: DateDecoder })
], OrganizationMetaData.prototype, "defaultStartDate", void 0);
__decorate([
field({ decoder: DateDecoder })
], OrganizationMetaData.prototype, "defaultEndDate", void 0);
__decorate([
field({ decoder: new ArrayDecoder(GroupPrices) })
], OrganizationMetaData.prototype, "defaultPrices", void 0);
//# sourceMappingURL=OrganizationMetaData.js.map

@@ -5,2 +5,13 @@ export declare enum OrganizationType {

Tennis = "Tennis",
Golf = "Golf",
Athletics = "Athletics",
Badminton = "Badminton",
Hockey = "Hockey",
Cycling = "Cycling",
Swimming = "Swimming",
Dance = "Dance",
Volleyball = "Volleyball",
Basketball = "Basketball",
Judo = "Judo",
Sport = "Sport",
Student = "Student",

@@ -7,0 +18,0 @@ Other = "Other"

@@ -6,2 +6,13 @@ export var OrganizationType;

OrganizationType["Tennis"] = "Tennis";
OrganizationType["Golf"] = "Golf";
OrganizationType["Athletics"] = "Athletics";
OrganizationType["Badminton"] = "Badminton";
OrganizationType["Hockey"] = "Hockey";
OrganizationType["Cycling"] = "Cycling";
OrganizationType["Swimming"] = "Swimming";
OrganizationType["Dance"] = "Dance";
OrganizationType["Volleyball"] = "Volleyball";
OrganizationType["Basketball"] = "Basketball";
OrganizationType["Judo"] = "Judo";
OrganizationType["Sport"] = "Sport";
OrganizationType["Student"] = "Student";

@@ -8,0 +19,0 @@ OrganizationType["Other"] = "Other";

@@ -17,3 +17,4 @@ import { Data, Encodeable, EncodeContext } from '@simonbackx/simple-encoding';

encode(_context: EncodeContext): any;
needsRefresh(): boolean;
}
//# sourceMappingURL=Token.d.ts.map

@@ -23,7 +23,10 @@ /**

"token_type": "bearer",
"expires_in": (this.accessTokenValidUntil.getTime() - new Date().getTime()) / 1000,
"expires_in": Math.floor((this.accessTokenValidUntil.getTime() - new Date().getTime()) / 1000),
"refresh_token": this.refreshToken,
};
}
needsRefresh() {
return this.accessToken.length == 0 || this.accessTokenValidUntil < new Date();
}
}
//# sourceMappingURL=Token.js.map
export declare enum UmbrellaOrganization {
ScoutsEnGidsenVlaanderen = "ScoutsEnGidsenVlaanderen",
ChiroNationaal = "ChiroNationaal"
ChiroNationaal = "ChiroNationaal",
Other = "Other"
}
//# sourceMappingURL=UmbrellaOrganization.d.ts.map

@@ -5,3 +5,4 @@ export var UmbrellaOrganization;

UmbrellaOrganization["ChiroNationaal"] = "ChiroNationaal";
UmbrellaOrganization["Other"] = "Other";
})(UmbrellaOrganization || (UmbrellaOrganization = {}));
//# sourceMappingURL=UmbrellaOrganization.js.map
{
"name": "@stamhoofd/structures",
"version": "1.0.6",
"version": "1.0.7",
"main": "./dist/index.js",

@@ -35,4 +35,5 @@ "module": "./esm/dist/index.js",

"@simonbackx/simple-encoding": "^1.8.33",
"@simonbackx/simple-errors": "^1.0.0",
"uuid": "^8.2.0"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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