dfx 0.9.10 → 0.9.11

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.
@@ -1,5 +1,6 @@
1
- import { Discord, Effect, Maybe } from "dfx/common";
1
+ import { Discord, Maybe } from "dfx/common";
2
2
  import { InteractionResponse } from "./definitions.js";
3
+ import { EffectTypeId, Effect } from "@effect/io/Effect";
3
4
  export declare const InteractionContext: import("../common.js").Tag<import("../types.js").Interaction>;
4
5
  export declare const ApplicationCommandContext: import("../common.js").Tag<import("../types.js").ApplicationCommandDatum>;
5
6
  export declare const MessageComponentContext: import("../common.js").Tag<import("../types.js").MessageComponentDatum>;
@@ -12,17 +13,17 @@ export interface SubCommandContext {
12
13
  readonly command: Discord.ApplicationCommandInteractionDataOption;
13
14
  }
14
15
  export declare const SubCommandContext: import("../common.js").Tag<SubCommandContext>;
15
- export declare const getCommand: import("../common.js").Effect<import("../types.js").ApplicationCommandDatum, never, import("../types.js").ApplicationCommandDatum>;
16
+ export declare const getCommand: Effect<import("../types.js").ApplicationCommandDatum, never, import("../types.js").ApplicationCommandDatum>;
16
17
  export declare class ResolvedDataNotFound {
17
18
  readonly data: Discord.ApplicationCommandDatum;
18
19
  readonly name: string;
19
20
  readonly _tag = "ResolvedDataNotFound";
20
21
  constructor(data: Discord.ApplicationCommandDatum, name: string);
21
22
  }
22
- export declare const getResolved: <A>(name: string, f: (id: Discord.Snowflake, data: Discord.ResolvedDatum) => A | undefined) => import("../common.js").Effect<import("../types.js").ApplicationCommandDatum, ResolvedDataNotFound, A>;
23
- export declare const focusedOptionValue: import("../common.js").Effect<FocusedOptionContext, never, string>;
24
- export declare const commandOptionsMap: import("../common.js").Effect<import("../types.js").ApplicationCommandDatum, never, Record<string, string | undefined>>;
25
- export declare const handleSubCommands: <NER extends Record<string, import("../common.js").Effect<any, any, import("../common.js").Maybe<InteractionResponse>>>>(commands: NER) => import("../common.js").Effect<import("../types.js").Interaction | import("../types.js").ApplicationCommandDatum | Exclude<[NER[keyof NER]] extends [{
23
+ export declare const getResolved: <A>(name: string, f: (id: Discord.Snowflake, data: Discord.ResolvedDatum) => A | undefined) => Effect<import("../types.js").ApplicationCommandDatum, ResolvedDataNotFound, A>;
24
+ export declare const focusedOptionValue: Effect<FocusedOptionContext, never, string>;
25
+ export declare const commandOptionsMap: Effect<import("../types.js").ApplicationCommandDatum, never, Record<string, string | undefined>>;
26
+ export declare const handleSubCommands: <NER extends Record<string, Effect<any, any, import("../common.js").Maybe<InteractionResponse>>>>(commands: NER) => Effect<import("../types.js").Interaction | import("../types.js").ApplicationCommandDatum | Exclude<[NER[keyof NER]] extends [{
26
27
  [EffectTypeId]: {
27
28
  _R: (_: never) => infer R;
28
29
  };
@@ -31,6 +32,6 @@ export declare const handleSubCommands: <NER extends Record<string, import("../c
31
32
  _E: (_: never) => infer E;
32
33
  };
33
34
  }] ? E : never, import("../common.js").Maybe<InteractionResponse>>;
34
- export declare const getSubCommand: import("../common.js").Effect<SubCommandContext, never, import("../types.js").ApplicationCommandInteractionDataOption>;
35
- export declare const subCommandOptionsMap: import("../common.js").Effect<SubCommandContext, never, Record<string, string | undefined>>;
36
- export declare const modalValues: import("../common.js").Effect<import("../types.js").ModalSubmitDatum, never, Record<string, string | undefined>>;
35
+ export declare const getSubCommand: Effect<SubCommandContext, never, import("../types.js").ApplicationCommandInteractionDataOption>;
36
+ export declare const subCommandOptionsMap: Effect<SubCommandContext, never, Record<string, string | undefined>>;
37
+ export declare const modalValues: Effect<import("../types.js").ModalSubmitDatum, never, Record<string, string | undefined>>;
@@ -5,6 +5,7 @@ import * as tsplus_module_4 from "@fp-ts/data/Function";
5
5
  import { InteractionNotFound } from "./handlers.js";
6
6
  import * as Arr from "@fp-ts/data/ReadonlyArray";
7
7
  import { optionsMap } from "dfx/Helpers/interactions";
8
+ import { EffectTypeId } from "@effect/io/Effect";
8
9
  export const InteractionContext = tsplus_module_1.Tag();
9
10
  export const ApplicationCommandContext = tsplus_module_1.Tag();
10
11
  export const MessageComponentContext = tsplus_module_1.Tag();
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/Interactions/context.ts"],"names":[],"mappings":";;;;AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAA;AACnD,OAAO,KAAK,GAAG,MAAM,2BAA2B,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAA;AAErD,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAA,GAAG,EAAuB,CAAA;AAC5D,MAAM,CAAC,MAAM,yBAAyB,GAAG,gBAAA,GAAG,EAAmC,CAAA;AAC/E,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAA,GAAG,EAAiC,CAAA;AAC3E,MAAM,CAAC,MAAM,kBAAkB,GAAG,gBAAA,GAAG,EAA4B,CAAA;AAKjE,MAAM,CAAC,MAAM,oBAAoB,GAAG,gBAAA,GAAG,EAAwB,CAAA;AAK/D,MAAM,CAAC,MAAM,iBAAiB,GAAG,gBAAA,GAAG,EAAqB,CAAA;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG,wBAAe,yBAAyB,CAAC,CAAA;AAEnE,MAAM,OAAO,oBAAoB;IAGpB;IACA;IAHF,IAAI,GAAG,sBAAsB,CAAA;IACtC,YACW,IAAqC,EACrC,IAAY;QADZ,SAAI,GAAJ,IAAI,CAAiC;QACrC,SAAI,GAAJ,IAAI,CAAQ;IACpB,CAAC;CACL;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,IAAY,EACZ,CAAwE,EACxE,EAAE,CACF,kCAAyB,yBAAyB,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CACxD,sBAIE,GAAG,EAAE,CAAC,qBAAY,IAAI,oBAAoB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,2BAJtD,gBAAA,SAAS,CAAC,kBAAkB,CAC1B,IAAI,EACJ,CAAC,CACF,CAAC,CAAC,CAAC,CAGH,CACF,CAA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C,MAAM,oBAAoB,GAAG,oBAAkB,gBAAA,SAAS,CAAC,UAAU,EAAtC,aAAa,CAA0B,CAAA;AAE3E,MAAM,CAAC,MAAM,WAAW,GAAG,4BAAmB,kBAAkB,CAAC,CAC/D,gBAAA,SAAS,CAAC,aAAa,CACxB,CAAA"}
package/common.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { Effect, EffectTypeId } from "@effect/io/Effect";
1
+ export type { Effect } from "@effect/io/Effect";
2
2
  export type { Layer } from "@effect/io/Layer";
3
3
  export type { Schedule } from "@effect/io/Schedule";
4
4
  export type { Cause } from "@effect/io/Cause";
package/common.js CHANGED
@@ -1,4 +1,3 @@
1
- export { EffectTypeId } from "@effect/io/Effect";
2
1
  export { Tag } from "@fp-ts/data/Context";
3
2
  export * as Config from "dfx/DiscordConfig/index";
4
3
  export * as Discord from "dfx/types";
package/common.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAU,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAKxD,OAAO,EAAW,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAWlD,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAA;AACpC,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAE5C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAKA,OAAO,EAAW,GAAG,EAAE,MAAM,qBAAqB,CAAA;AAWlD,OAAO,KAAK,MAAM,MAAM,yBAAyB,CAAA;AACjD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAA;AACpC,OAAO,KAAK,IAAI,MAAM,gBAAgB,CAAA;AACtC,OAAO,KAAK,GAAG,MAAM,eAAe,CAAA;AACpC,OAAO,KAAK,cAAc,MAAM,0BAA0B,CAAA;AAC1D,OAAO,KAAK,IAAI,MAAM,uBAAuB,CAAA;AAC7C,OAAO,KAAK,EAAE,MAAM,wBAAwB,CAAA;AAE5C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAA;AAC3C,OAAO,KAAK,SAAS,MAAM,2BAA2B,CAAA;AACtD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAA;AAC/C,OAAO,KAAK,KAAK,MAAM,0BAA0B,CAAA;AACjD,OAAO,KAAK,EAAE,MAAM,iBAAiB,CAAA"}
package/global.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * @tsplus global
3
3
  */
4
- import type { Effect, EffectTypeId, Layer, Either, Maybe, Tag, Context, Cause, Chunk, Duration, Equal, Exit, HashMap, Schedule, EffectSource, EffectSink, Ref, Config, Discord, Http, Log, RateLimitStore, Rest, Ix, Flags, Intents, IxHelpers, Members, Perms, UI, } from "dfx/common";
4
+ import type { Effect, Layer, Either, Maybe, Tag, Context, Cause, Chunk, Duration, Equal, Exit, HashMap, Schedule, EffectSource, EffectSink, Ref, Config, Discord, Http, Log, RateLimitStore, Rest, Ix, Flags, Intents, IxHelpers, Members, Perms, UI, } from "dfx/common";
5
5
  /**
6
6
  * @tsplus global
7
7
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dfx",
3
- "version": "0.9.10",
3
+ "version": "0.9.11",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -47,5 +47,5 @@
47
47
  "@fp-ts/data": "^0.0.20"
48
48
  }
49
49
  },
50
- "gitHead": "4cc8befa8d8fb2b66f418df0ed8fd9c738ca0f66"
50
+ "gitHead": "3d4e63055d84452a1d2705968b14c7b3dbf5c9e6"
51
51
  }