@edifice.io/directory-nest-client 0.0.0-stage → 0.1.0

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.
@@ -0,0 +1,2 @@
1
+ export * from './nats/client';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,196 @@
1
+ var c = Object.defineProperty;
2
+ var u = (r, e, t) => e in r ? c(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t;
3
+ var g = (r, e, t) => (u(r, typeof e != "symbol" ? e + "" : e, t), t);
4
+ import { Injectable as l, Logger as y } from "@nestjs/common";
5
+ import { firstValueFrom as o } from "rxjs";
6
+ var w = Object.getOwnPropertyDescriptor, b = (r, e, t, s) => {
7
+ for (var n = s > 1 ? void 0 : s ? w(e, t) : e, d = r.length - 1, i; d >= 0; d--)
8
+ (i = r[d]) && (n = i(n) || n);
9
+ return n;
10
+ };
11
+ let a = class {
12
+ constructor(r) {
13
+ g(this, "logger", new y(a.name));
14
+ this.natsClient = r, this.logger.log("Creating events service DirectoryNatsServiceClient");
15
+ }
16
+ /**
17
+ * Adds a member to a group in the directory.
18
+ */
19
+ async addGroupMember(r) {
20
+ const e = "directory.group.member.add";
21
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
22
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
23
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
24
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
25
+ return s;
26
+ }
27
+ /**
28
+ * Creates a new manual group in the directory.
29
+ */
30
+ async createManualGroup(r) {
31
+ const e = "directory.group.manual.create";
32
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
33
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
34
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
35
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
36
+ return s;
37
+ }
38
+ /**
39
+ * Deletes an existing manual group in the directory.
40
+ */
41
+ async deleteManualGroup(r) {
42
+ const e = "directory.group.manual.delete";
43
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
44
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
45
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
46
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
47
+ return s;
48
+ }
49
+ /**
50
+ * Finds a group by its external ID in the directory.
51
+ * The response contains the group or an indication that the group was not found.
52
+ */
53
+ async findGroupByExternalId(r) {
54
+ const e = "directory.group.find.byexternalid";
55
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
56
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
57
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
58
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
59
+ return s;
60
+ }
61
+ /**
62
+ * Retrieves users by their ENT IDs with basic profile information, classes informations and hobbies.
63
+ */
64
+ async getClassAdminUsers(r) {
65
+ const e = "directory.class.admin.by.id";
66
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
67
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
68
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
69
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
70
+ return s;
71
+ }
72
+ /**
73
+ * Retrieves groups by their ENT IDs with basic information (id, name).
74
+ * Unlike communication-rights-filtered lookups, this returns every group found
75
+ * regardless of the caller's communication rights or structure attachment.
76
+ */
77
+ async getGroupsByIds(r) {
78
+ const e = "directory.groups.get.byids";
79
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
80
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
81
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
82
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
83
+ return s;
84
+ }
85
+ /**
86
+ * Retrieves a list of users linked to a structure.
87
+ */
88
+ async getStructureUsers(r) {
89
+ const e = "directory.structure.users.by.id";
90
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
91
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
92
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
93
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
94
+ return s;
95
+ }
96
+ /**
97
+ * Retrieves display names for multiple users by their ENT IDs.
98
+ */
99
+ async getUserDisplayNames(r) {
100
+ const e = "directory.users.get.displaynames";
101
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
102
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
103
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
104
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
105
+ return s;
106
+ }
107
+ /**
108
+ * Retrieves users present in the class.
109
+ * It's getting more informations like INE and other relatives informations.
110
+ */
111
+ async getUserInClassWithParams(r) {
112
+ const e = "directory.class.by.id.with.params";
113
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
114
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
115
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
116
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
117
+ return s;
118
+ }
119
+ /**
120
+ * Retrieves users by their ENT IDs with basic profile information.
121
+ */
122
+ async getUsersByIds(r) {
123
+ const e = "directory.users.get.byids";
124
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
125
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
126
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
127
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
128
+ return s;
129
+ }
130
+ /**
131
+ * Retrieves all users in provided groups with basic profile information.
132
+ */
133
+ async getUsersFromGroups(r) {
134
+ const e = "directory.users.get.bygroupids";
135
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
136
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
137
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
138
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
139
+ return s;
140
+ }
141
+ /**
142
+ * Notifies subscribers that the membership of a group has changed.
143
+ * This includes both current members and members who have been removed.
144
+ */
145
+ async notifyGroupMembersChanged(r) {
146
+ this.natsClient.emit("directory.group.members.changed", r);
147
+ }
148
+ /**
149
+ * Notifies subscribers that groups have been deleted from the directory.
150
+ */
151
+ async notifyGroupsDeleted(r) {
152
+ this.natsClient.emit("directory.groups.deleted", r);
153
+ }
154
+ /**
155
+ * Notifies subscribers that users have been deleted from the directory.
156
+ */
157
+ async notifyUsersDeleted(r) {
158
+ this.natsClient.emit("directory.users.deleted", r);
159
+ }
160
+ /**
161
+ * Removes a member from a group in the directory.
162
+ */
163
+ async removeGroupMember(r) {
164
+ const e = "directory.group.member.delete";
165
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
166
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
167
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
168
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
169
+ return s;
170
+ }
171
+ async searchStructures(r) {
172
+ const e = "directory.structures.search";
173
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
174
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
175
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
176
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
177
+ return s;
178
+ }
179
+ /**
180
+ * Updates an existing manual group in the directory.
181
+ */
182
+ async updateManualGroup(r) {
183
+ const e = "directory.group.manual.update";
184
+ this.logger.debug({ messageAddress: e }, "Sending request to NATS subject");
185
+ const t = Date.now(), s = await o(this.natsClient.send(e, r)), n = Date.now() - t;
186
+ if (this.logger.debug({ brokerAddress: e, duration: n }, "[nats][mttr]"), !s)
187
+ throw this.logger.warn({ messageAddress: e }, "No reply received for subject"), new Error("No reply received");
188
+ return s;
189
+ }
190
+ };
191
+ a = b([
192
+ l()
193
+ ], a);
194
+ export {
195
+ a as DirectoryNatsServiceClient
196
+ };
@@ -0,0 +1 @@
1
+ (function(d,i){typeof exports=="object"&&typeof module<"u"?i(exports,require("@nestjs/common"),require("rxjs")):typeof define=="function"&&define.amd?define(["exports","@nestjs/common","rxjs"],i):(d=typeof globalThis<"u"?globalThis:d||self,i((d["@edifice"]=d["@edifice"]||{},d["@edifice"]["io/directory-nest-client"]={}),d.NestjsCommon,d.rxjs))})(this,function(d,i,o){"use strict";var y=Object.defineProperty;var w=(d,i,o)=>i in d?y(d,i,{enumerable:!0,configurable:!0,writable:!0,value:o}):d[i]=o;var g=(d,i,o)=>(w(d,typeof i!="symbol"?i+"":i,o),o);var u=Object.getOwnPropertyDescriptor,l=(a,s,e,n)=>{for(var r=n>1?void 0:n?u(s,e):s,t=a.length-1,c;t>=0;t--)(c=a[t])&&(r=c(r)||r);return r};d.DirectoryNatsServiceClient=class{constructor(s){g(this,"logger",new i.Logger(d.DirectoryNatsServiceClient.name));this.natsClient=s,this.logger.log("Creating events service DirectoryNatsServiceClient")}async addGroupMember(s){const e="directory.group.member.add";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async createManualGroup(s){const e="directory.group.manual.create";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async deleteManualGroup(s){const e="directory.group.manual.delete";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async findGroupByExternalId(s){const e="directory.group.find.byexternalid";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getClassAdminUsers(s){const e="directory.class.admin.by.id";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getGroupsByIds(s){const e="directory.groups.get.byids";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getStructureUsers(s){const e="directory.structure.users.by.id";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getUserDisplayNames(s){const e="directory.users.get.displaynames";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getUserInClassWithParams(s){const e="directory.class.by.id.with.params";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getUsersByIds(s){const e="directory.users.get.byids";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async getUsersFromGroups(s){const e="directory.users.get.bygroupids";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async notifyGroupMembersChanged(s){this.natsClient.emit("directory.group.members.changed",s)}async notifyGroupsDeleted(s){this.natsClient.emit("directory.groups.deleted",s)}async notifyUsersDeleted(s){this.natsClient.emit("directory.users.deleted",s)}async removeGroupMember(s){const e="directory.group.member.delete";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async searchStructures(s){const e="directory.structures.search";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}async updateManualGroup(s){const e="directory.group.manual.update";this.logger.debug({messageAddress:e},"Sending request to NATS subject");const n=Date.now(),r=await o.firstValueFrom(this.natsClient.send(e,s)),t=Date.now()-n;if(this.logger.debug({brokerAddress:e,duration:t},"[nats][mttr]"),!r)throw this.logger.warn({messageAddress:e},"No reply received for subject"),new Error("No reply received");return r}},d.DirectoryNatsServiceClient=l([i.Injectable()],d.DirectoryNatsServiceClient),Object.defineProperty(d,Symbol.toStringTag,{value:"Module"})});
@@ -0,0 +1,78 @@
1
+ import { ClientProxy } from '@nestjs/microservices';
2
+ import { AddGroupMemberRequest, AddGroupMemberResponse, CreateGroupRequest, CreateGroupResponse, DeleteGroupRequest, DeleteGroupResponse, FindGroupByExternalIdRequest, FindGroupByExternalIdResponse, GetClassAdminRequest, GetClassAdminResponse, GetGroupsByIdsRequest, GetGroupsByIdsResponse, GetStructureUsersRequest, GetStructureUsersResponse, GetUserDisplayNamesRequest, GetUserDisplayNamesResponse, GetUserInClassWithParamsRequest, GetUserInClassWithParamsResponse, GetUsersByIdsRequest, GetUsersByIdsResponse, GetUsersFromGroupsRequest, GetUsersFromGroupsResponse, GroupMembersChanged, GroupsDeleted, RemoveGroupMemberRequest, RemoveGroupMemberResponse, SearchStructuresRequest, SearchStructuresResponse, UpdateGroupRequest, UpdateGroupResponse, UsersDeleted } from '@edifice.io/directory-nest-api';
3
+ export declare class DirectoryNatsServiceClient {
4
+ private readonly natsClient;
5
+ private readonly logger;
6
+ constructor(natsClient: ClientProxy);
7
+ /**
8
+ * Adds a member to a group in the directory.
9
+ */
10
+ addGroupMember(request: AddGroupMemberRequest): Promise<AddGroupMemberResponse>;
11
+ /**
12
+ * Creates a new manual group in the directory.
13
+ */
14
+ createManualGroup(request: CreateGroupRequest): Promise<CreateGroupResponse>;
15
+ /**
16
+ * Deletes an existing manual group in the directory.
17
+ */
18
+ deleteManualGroup(request: DeleteGroupRequest): Promise<DeleteGroupResponse>;
19
+ /**
20
+ * Finds a group by its external ID in the directory.
21
+ * The response contains the group or an indication that the group was not found.
22
+ */
23
+ findGroupByExternalId(request: FindGroupByExternalIdRequest): Promise<FindGroupByExternalIdResponse>;
24
+ /**
25
+ * Retrieves users by their ENT IDs with basic profile information, classes informations and hobbies.
26
+ */
27
+ getClassAdminUsers(request: GetClassAdminRequest): Promise<GetClassAdminResponse>;
28
+ /**
29
+ * Retrieves groups by their ENT IDs with basic information (id, name).
30
+ * Unlike communication-rights-filtered lookups, this returns every group found
31
+ * regardless of the caller's communication rights or structure attachment.
32
+ */
33
+ getGroupsByIds(request: GetGroupsByIdsRequest): Promise<GetGroupsByIdsResponse>;
34
+ /**
35
+ * Retrieves a list of users linked to a structure.
36
+ */
37
+ getStructureUsers(request: GetStructureUsersRequest): Promise<GetStructureUsersResponse>;
38
+ /**
39
+ * Retrieves display names for multiple users by their ENT IDs.
40
+ */
41
+ getUserDisplayNames(request: GetUserDisplayNamesRequest): Promise<GetUserDisplayNamesResponse>;
42
+ /**
43
+ * Retrieves users present in the class.
44
+ * It's getting more informations like INE and other relatives informations.
45
+ */
46
+ getUserInClassWithParams(request: GetUserInClassWithParamsRequest): Promise<GetUserInClassWithParamsResponse>;
47
+ /**
48
+ * Retrieves users by their ENT IDs with basic profile information.
49
+ */
50
+ getUsersByIds(request: GetUsersByIdsRequest): Promise<GetUsersByIdsResponse>;
51
+ /**
52
+ * Retrieves all users in provided groups with basic profile information.
53
+ */
54
+ getUsersFromGroups(request: GetUsersFromGroupsRequest): Promise<GetUsersFromGroupsResponse>;
55
+ /**
56
+ * Notifies subscribers that the membership of a group has changed.
57
+ * This includes both current members and members who have been removed.
58
+ */
59
+ notifyGroupMembersChanged(request: GroupMembersChanged): Promise<void>;
60
+ /**
61
+ * Notifies subscribers that groups have been deleted from the directory.
62
+ */
63
+ notifyGroupsDeleted(request: GroupsDeleted): Promise<void>;
64
+ /**
65
+ * Notifies subscribers that users have been deleted from the directory.
66
+ */
67
+ notifyUsersDeleted(request: UsersDeleted): Promise<void>;
68
+ /**
69
+ * Removes a member from a group in the directory.
70
+ */
71
+ removeGroupMember(request: RemoveGroupMemberRequest): Promise<RemoveGroupMemberResponse>;
72
+ searchStructures(request: SearchStructuresRequest): Promise<SearchStructuresResponse>;
73
+ /**
74
+ * Updates an existing manual group in the directory.
75
+ */
76
+ updateManualGroup(request: UpdateGroupRequest): Promise<UpdateGroupResponse>;
77
+ }
78
+ //# sourceMappingURL=client.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/nats/client.ts"],"names":[],"mappings":"AAmBA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAGpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AAE5E,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAE7E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAE1E,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEzE,OAAO,K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;IAgBnH;;OAEG;IACG,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAgBlF;;OAEG;IACG,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAgBjG;;;OAGG;IACG,yBAAyB,CAAC,OAAO,EAAE,mBAAmB;IAO5D;;OAEG;IACG,mBAAmB,CAAC,OAAO,EAAE,aAAa;IAOhD;;OAEG;IACG,kBAAkB,CAAC,OAAO,EAAE,YAAY;IAO9C;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,wBAAwB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAgBxF,gBAAgB,CAAC,OAAO,EAAE,uBAAuB,GAAG,OAAO,CAAC,wBAAwB,CAAC;IAgB3F;;OAEG;IACG,iBAAiB,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAgBnF"}
package/package.json CHANGED
@@ -1,6 +1,58 @@
1
1
  {
2
2
  "name": "@edifice.io/directory-nest-client",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.0",
4
+ "description": "Clients to interact with directory-nats-service",
5
+ "private": false,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ },
9
+ "keywords": [],
10
+ "author": "Edifice",
11
+ "license": "AGPL-3.0",
12
+ "engines": {
13
+ "node": "22"
14
+ },
15
+ "engineStrict": true,
16
+ "type": "module",
17
+ "exports": {
18
+ ".": {
19
+ "require": "./dist/index.umd.cjs",
20
+ "import": "./dist/index.js",
21
+ "types": "./dist/index.d.ts"
22
+ }
23
+ },
24
+ "main": "dist/index.umd.cjs",
25
+ "module": "dist/index.js",
26
+ "types": "dist/index.d.ts",
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "dependencies": {
31
+ "@edifice.io/directory-nest-api": "0.1.0"
32
+ },
33
+ "devDependencies": {
34
+ "husky": "9.0.11",
35
+ "prettier": "3.2.5",
36
+ "semantic-release": "23.0.2",
37
+ "typescript": "5.2.2",
38
+ "vite": "5.1.4",
39
+ "vite-plugin-dts": "4.3.0",
40
+ "rxjs": "7.8.1",
41
+ "@nestjs/common": "11.0.20",
42
+ "@nestjs/microservices": "11.0.20"
43
+ },
44
+ "lint-staged": {
45
+ "*.{js,ts,jsx,tsx,json,css,md}": "pnpm format"
46
+ },
47
+ "scripts": {
48
+ "dev": "vite",
49
+ "build": "tsc && vite build",
50
+ "build:types": "tsc --build",
51
+ "preview": "vite preview",
52
+ "clean": "rm -Rf dist",
53
+ "format": "pnpm run format:write && pnpm run format:check",
54
+ "format:check": "npx prettier --check \"src/**/*.ts\"",
55
+ "format:write": "npx prettier --write \"src/**/*.ts\"",
56
+ "pre-commit": "pnpm run format"
57
+ }
6
58
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.