@sprucelabs/spruce-invite-utils 0.0.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/README.md ADDED
@@ -0,0 +1,4 @@
1
+ # [Your Skill Name]
2
+
3
+ ## Useful links
4
+ * [Spruce Developer Documentation: https://developer.spruce.ai](https://developer.spruce.ai)
@@ -0,0 +1 @@
1
+ export { default as buildRouteToCreateInvite } from './utilities/buildRouteToCreateInvite';
@@ -0,0 +1 @@
1
+ export { default as buildRouteToCreateInvite } from './utilities/buildRouteToCreateInvite.js';
@@ -0,0 +1,16 @@
1
+ export declare type InviteRouteBuilderOptions = {
2
+ destination: {
3
+ id: string;
4
+ };
5
+ organizationId?: string;
6
+ locationId?: string;
7
+ roleId?: string;
8
+ };
9
+ export default function buildRouteToCreateInvite(options: InviteRouteBuilderOptions): (string | {
10
+ destination: {
11
+ id: string;
12
+ };
13
+ organizationId?: string | undefined;
14
+ locationId?: string | undefined;
15
+ roleId?: string | undefined;
16
+ })[];
@@ -0,0 +1,8 @@
1
+ import { assertOptions } from '@sprucelabs/schema';
2
+ export default function buildRouteToCreateInvite(options) {
3
+ assertOptions(options, ['destination']);
4
+ return [
5
+ 'invite.create',
6
+ Object.assign({}, options),
7
+ ];
8
+ }
@@ -0,0 +1 @@
1
+ export { default as buildRouteToCreateInvite } from './utilities/buildRouteToCreateInvite';
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.buildRouteToCreateInvite = void 0;
7
+ var buildRouteToCreateInvite_1 = require("./utilities/buildRouteToCreateInvite");
8
+ Object.defineProperty(exports, "buildRouteToCreateInvite", { enumerable: true, get: function () { return __importDefault(buildRouteToCreateInvite_1).default; } });
@@ -0,0 +1,16 @@
1
+ export declare type InviteRouteBuilderOptions = {
2
+ destination: {
3
+ id: string;
4
+ };
5
+ organizationId?: string;
6
+ locationId?: string;
7
+ roleId?: string;
8
+ };
9
+ export default function buildRouteToCreateInvite(options: InviteRouteBuilderOptions): (string | {
10
+ destination: {
11
+ id: string;
12
+ };
13
+ organizationId?: string | undefined;
14
+ locationId?: string | undefined;
15
+ roleId?: string | undefined;
16
+ })[];
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ function buildRouteToCreateInvite(options) {
5
+ (0, schema_1.assertOptions)(options, ['destination']);
6
+ return [
7
+ 'invite.create',
8
+ Object.assign({}, options),
9
+ ];
10
+ }
11
+ exports.default = buildRouteToCreateInvite;
package/package.json ADDED
@@ -0,0 +1,37 @@
1
+ {
2
+ "name": "@sprucelabs/spruce-invite-utils",
3
+ "description": "Invite Utilities",
4
+ "version": "0.0.1",
5
+ "skill": {
6
+ "namespace": "invite"
7
+ },
8
+ "homepage": "https://github.com/sprucelabsai/spruce-invite-skill",
9
+ "bugs": {
10
+ "url": "https://github.com/sprucelabsai/spruce-invite-skill/issues"
11
+ },
12
+ "main": "./build/index-module.js",
13
+ "types": "./build/index-module.d.ts",
14
+ "module": "./build/esm/index-module.js",
15
+ "sideEffects": false,
16
+ "files": [
17
+ "build/index-module.js",
18
+ "build/index-module.d.ts",
19
+ "build/utilities/buildRouteToCreateInvite.js",
20
+ "build/utilities/buildRouteToCreateInvite.d.ts",
21
+ "build/esm/index-module.js",
22
+ "build/esm/index-module.d.ts",
23
+ "build/esm/utilities/buildRouteToCreateInvite.js",
24
+ "build/esm/utilities/buildRouteToCreateInvite.d.ts"
25
+ ],
26
+ "keywords": [],
27
+ "scripts": {
28
+ "release": "npm publish"
29
+ },
30
+ "dependencies": {
31
+ "@sprucelabs/schema": "latest"
32
+ },
33
+ "engines": {
34
+ "node": "16.x",
35
+ "yarn": "1.x"
36
+ }
37
+ }