kozz-module-maker 0.1.2 → 0.1.4
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/dist/Instance/Common/ResourceMap/index.d.ts +1 -1
- package/dist/Message/PayloadCreation/Reply.js.map +1 -1
- package/dist/Message/RoutineCreation/AskResource/index.d.ts +5 -5
- package/dist/Message/RoutineCreation/Reply/WithMedia.d.ts +1 -1
- package/dist/Message/RoutineCreation/Reply/WithMedia.js +2 -2
- package/dist/Message/RoutineCreation/Reply/WithMedia.js.map +1 -1
- package/dist/Message/RoutineCreation/Reply/WithTemplate.js +2 -2
- package/dist/Message/RoutineCreation/Reply/WithTemplate.js.map +1 -1
- package/dist/Message/RoutineCreation/SendMessage/index.js +1 -1
- package/dist/Message/RoutineCreation/SendMessage/index.js.map +1 -1
- package/dist/Socket/Events/Emit/Introduction.js +1 -1
- package/dist/Socket/Events/Emit/Introduction.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Reply.js","sourceRoot":"","sources":["../../../src/Message/PayloadCreation/Reply.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"Reply.js","sourceRoot":"","sources":["../../../src/Message/PayloadCreation/Reply.ts"],"names":[],"mappings":";;;AAMO,MAAM,aAAa,GAAG,CAC5B,cAAwC,EACxC,MAAc,EACO,EAAE,CAAC,CAAC;IACzB,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,cAAc,CAAC,UAAU;IACrC,MAAM,EAAE,cAAc,CAAC,EAAE;IACzB,OAAO,EAAE,cAAc,CAAC,OAAO;IAC/B,QAAQ,EAAE,cAAc,CAAC,QAAQ;IACjC,SAAS,EAAE,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE;IAC/B,OAAO,EAAE,cAAc,CAAC,EAAE;CAC1B,CAAC,CAAC;AAXU,QAAA,aAAa,iBAWvB;AAEI,MAAM,gBAAgB,GAAG,CAC/B,cAAw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|
-
import { AskResourcePayload } from 'kozz-types
|
|
1
|
+
import { AskResourcePayload } from 'kozz-types';
|
|
2
2
|
import { Socket } from 'socket.io-client';
|
|
3
3
|
type RequestResourceArgs = {
|
|
4
4
|
requester: AskResourcePayload['requester'];
|
|
@@ -8,9 +8,9 @@ type AskResourceArgs = {
|
|
|
8
8
|
responder: AskResourcePayload['responder'];
|
|
9
9
|
};
|
|
10
10
|
export declare const createAskResource: (socket: Socket, args: RequestResourceArgs) => {
|
|
11
|
-
(askArgs: AskResourceArgs): Promise<import("kozz-types
|
|
12
|
-
boundary(boundaryId: string, resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types
|
|
13
|
-
handler(handlerId: string, resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types
|
|
14
|
-
gateway(resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types
|
|
11
|
+
(askArgs: AskResourceArgs): Promise<import("kozz-types").ProvideResourcePayload>;
|
|
12
|
+
boundary(boundaryId: string, resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types").ProvideResourcePayload>;
|
|
13
|
+
handler(handlerId: string, resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types").ProvideResourcePayload>;
|
|
14
|
+
gateway(resourceName: string, requestArgs?: AskResourceArgs['resource']['data']): Promise<import("kozz-types").ProvideResourcePayload>;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { Media, MessageReceivedByGateway } from 'kozz-types/dist';
|
|
3
3
|
import { Socket } from 'socket.io-client';
|
|
4
|
-
import { MimeType } from '
|
|
4
|
+
import { MimeType } from '../../PayloadCreation/Media';
|
|
5
5
|
export declare const withMedia: (socket: Socket, messagePayload: MessageReceivedByGateway) => {
|
|
6
6
|
(media: Media, caption?: string): void;
|
|
7
7
|
fromPath(path: string, mimeType: MimeType, caption?: string): Promise<void>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withMedia = void 0;
|
|
4
|
-
const PayloadCreation_1 = require("
|
|
5
|
-
const Media_1 = require("
|
|
4
|
+
const PayloadCreation_1 = require("../../PayloadCreation");
|
|
5
|
+
const Media_1 = require("../../PayloadCreation/Media");
|
|
6
6
|
const withMedia = (socket, messagePayload) => {
|
|
7
7
|
/**
|
|
8
8
|
* Replies with a media
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithMedia.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/Reply/WithMedia.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"WithMedia.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/Reply/WithMedia.ts"],"names":[],"mappings":";;;AAEA,2DAAuD;AACvD,uDAMqC;AAE9B,MAAM,SAAS,GAAG,CACxB,MAAc,EACd,cAAwC,EACvC,EAAE;IACH;;;;OAIG;IACH,MAAM,UAAU,GAAG,CAAC,KAAY,EAAE,OAAgB,EAAE,EAAE;QACrD,MAAM,CAAC,IAAI,CACV,kBAAkB,EAClB,IAAA,gCAAc,EAAC,cAAc,EAAE,KAAK,EAAE,OAAO,CAAC,CAC9C,CAAC;IACH,CAAC,CAAC;IAEF,UAAU,CAAC,QAAQ,GAAG,KAAK,EAC1B,IAAY,EACZ,QAAkB,EAClB,OAAgB,EACf,EAAE;QACH,MAAM,KAAK,GAAG,MAAM,IAAA,yBAAiB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACtD,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,UAAU,CAAC,UAAU,GAAG,CACvB,MAAc,EACd,QAAkB,EAClB,OAAgB,EAChB,QAAiB,EAChB,EAAE;QACH,MAAM,KAAK,GAAG,IAAA,6BAAqB,EAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAChE,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,UAAU,CAAC,OAAO,GAAG,CACpB,GAAW,EACX,QAAkB,EAClB,OAAgB,EAChB,QAAiB,EAChB,EAAE;QACH,MAAM,KAAK,GAAG,IAAA,0BAAkB,EAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;QAC1D,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,UAAU,CAAC,OAAO,GAAG,CAAC,GAAW,EAAE,QAAkB,EAAE,OAAgB,EAAE,EAAE;QAC1E,MAAM,KAAK,GAAG,IAAA,0BAAkB,EAAC,GAAG,EAAE,QAAQ,CAAC,CAAC;QAChD,UAAU,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IAC5B,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;AACnB,CAAC,CAAC;AAnDW,QAAA,SAAS,aAmDpB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.withTemplate = void 0;
|
|
4
|
-
const FromTemplate_1 = require("
|
|
5
|
-
const PayloadCreation_1 = require("
|
|
4
|
+
const FromTemplate_1 = require("../../FromTemplate");
|
|
5
|
+
const PayloadCreation_1 = require("../../PayloadCreation");
|
|
6
6
|
const withTemplate = (socket, messagePayload, templatePath) => (templateName, templateData = {}) => {
|
|
7
7
|
if (!templatePath) {
|
|
8
8
|
throw 'Trying to reply with template but no template path was provided';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WithTemplate.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/Reply/WithTemplate.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"WithTemplate.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/Reply/WithTemplate.ts"],"names":[],"mappings":";;;AAEA,qDAAmD;AACnD,2DAAsD;AAE/C,MAAM,YAAY,GACxB,CACC,MAAc,EACd,cAAwC,EACxC,YAAqB,EACpB,EAAE,CACJ,CAAC,YAAoB,EAAE,eAAoC,EAAE,EAAE,EAAE;IAChE,IAAI,CAAC,YAAY,EAAE;QAClB,MAAM,iEAAiE,CAAC;KACxE;IAED,IAAA,4BAAa,EAAC,YAAY,CAAC;SACzB,mBAAmB,CAAC,YAAY,EAAE,YAAY,CAAC;SAC/C,IAAI,CAAC,YAAY,CAAC,EAAE;QACpB,IAAI,CAAC,YAAY,EAAE;YAClB,MAAM,6CAA6C,YAAY,qCAAqC,YAAY,EAAE,CAAC;SACnH;QACD,MAAM,CAAC,IAAI,CACV,iBAAiB,EACjB,IAAA,+BAAa,EAAC,cAAc,EAAE,YAAY,CAAC,CAC3C,CAAC;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAtBU,QAAA,YAAY,gBAsBtB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.sendMessageToContact = exports.sendMessageToContactOnRequesterObject = void 0;
|
|
4
|
-
const sendMessage_1 = require("
|
|
4
|
+
const sendMessage_1 = require("../../PayloadCreation/sendMessage");
|
|
5
5
|
const sendMessageToContactOnRequesterObject = (socket, handlerName, boundaryId) => {
|
|
6
6
|
const sendMessage = (contactId, body) => {
|
|
7
7
|
socket.emit('send_message', (0, sendMessage_1.createSendMessagePayload)(handlerName, contactId, boundaryId, body));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/SendMessage/index.ts"],"names":[],"mappings":";;;AAEA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/Message/RoutineCreation/SendMessage/index.ts"],"names":[],"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oot":"","sources":["../../../../src/Socket/Events/Emit/Introduction.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"Introduction.js","sourceRoot":"","sources":["../../../../src/Socket/Events/Emit/Introduction.ts"],"names":[],"mappings":";;;AAGA,wCAA4C;AAE5C;;;;;;GAMG;AACI,MAAM,SAAS,GAAG,CAGxB,MAAc,EACd,WAAmB,EACnB,OAAU,EACV,SAAkB,EACjB,EAAE;IACH,MAAM,OAAO,GAA8C;QAC1D,OAAO,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,SAAS;KACf,CAAC;IAEF,MAAM,CAAC,IAAI,CAAC,cAAc,EAAE,IAAA,kBAAW,EAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC;AAC9D,CAAC,CAAC;AAfW,QAAA,SAAS,aAepB"}
|